Question : WebSphere CMP Entity Bean automatic primary key generation

Is there a possibility to use MSSQL identity column or Oracle sequence for primary key  in CMP Entity bean deployed on WebSphere (by configuration, not code)? WebLogic and JBoss have support for this issue. How can we achive this on WebSphere? I'm using WSAD 5.1.2!

 

WebLogic:

 

            MSSQL:

                                   

                                                SQLServer</generator-type>

                                    >

            Oracle:

                                     ORACLEnerator-type>

                                                 MYTABLE_ID_SEQrator-name>

                                                1he-size>

                                    >

 

JBoss:

 

            MSSQL:

 

                       

 

            Oracle:

                       

                            MYTABLE_ID_SEQibute>

                       


Thanks

Answer : WebSphere CMP Entity Bean automatic primary key generation

To my knowledge this type of extension is not supported in WAS.  For Oracle, my suggestion is to use a separate CMP for just the sequence ... when you call create you get the sequence back.  Have your other CMP use this.  For SQL Server, not sure that would work since the identity column is part of the table.  I realize you wanted to do this by configuration but I don't think it's supported in WAS.   I think the reason is DB2 was late to the party with sequences and identity columns.
Random Solutions  
 
programming4us programming4us