The moose likes BEA/Weblogic and the fly likes Development of EJB2.0 CMP Entity Bean with Oracle/MS SQL Server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "Development of EJB2.0 CMP Entity Bean with Oracle/MS SQL Server" Watch "Development of EJB2.0 CMP Entity Bean with Oracle/MS SQL Server" New topic
Author

Development of EJB2.0 CMP Entity Bean with Oracle/MS SQL Server

Oleg Shklyar
Greenhorn

Joined: May 28, 2001
Posts: 26
Hello rachers,
I developed EJB2.0 CMP Entity Bean using WLS6.0 Oracle 8.1.7 as a backend.
My primary key field uses sequence object to get a value which must be inserted in that field.And I have to know that value to pass it as parameter to ejbCreate() method.
1. How should I get that value ? In deployment descriptors notes and examples I've got that for version 6.1 there is some tags to handle with sequence object
2. MS SQL Server for instance doesn't require to pass primary key value if that field has IDENTITY counter_start_value, seed.
It looks like a weakness for me, because there is no abstract approach to persisting model, I have to know particular db features.
will anyone clarify my issues?
Thanks,
Oleg
 
 
subject: Development of EJB2.0 CMP Entity Bean with Oracle/MS SQL Server
 
Threads others viewed
Sequence number in oracle using Entity Bean
Using EJB and Oracle
Best way to generate PK in EJB
Identity keys, WebLogic and EJB CMP CMR
CMP 2.0 with oracle-sequence and composite primary key
developer file tools