Hi Christian!
You might have a look at
http://theserverside.com/patterns/thread.jsp?thread_id=220

I didn't test any of the code for that "Entity Bean Primary Key
Generator". But as I am going to have the same problem you face at the
moment I would like to hear the results you found.

Good luck.

Tobias

Christian Bourque wrote:
> 
> Hi !
> 
> I want my ejb to use an automatically generated primary key. So when i
> call create in the home interface, i dont want to pass in the primary
> key, i want the container to automatically fill this in (such as an
> auto-increment column in MS-SQL or a sequence in oracle).
> 
> Is there any way to make a CMP entity EJB use a automatic value as its
> primary key, so that in the create method you dont have to pass it the
> primary key value ?
> 
> If anyone has any idea I would really appreciate !
> 
> Christian
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to