Development of EJB2.0 CMP Entity Bean with Oracle/MS SQL Server
Oleg Shklyar
Greenhorn
Joined: May 28, 2001
Posts: 26
posted
0
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