Jim Archer wrote:
>
>> Actually, the original question came up in this context:
>>
>> I am developing a collaborative application which stores the
>> contributions
>> of participants in a database. These contributions could be text messages
>> or other objects, stored as blobs. None of the individual elements
>> will be
>> useful as a primary key and thus I thought, why not let the database
>> create a unique key. My original question arose from the fact that an EJB
>> needs to know the primary key in order to return it and my assumption
>> that I have to call create(...) on an EJB in order to insert new data.
>
>
> I'm not sure what you mean by the EJB needs to know the primark key to
> return it.
ejbCreate must return the new instance's primary key. per spec.
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user