> I'm using EJB and i have a question about Entity Bean component. I read that
> we can create entity bean without primary key, but one does not explain what
> it is necessary to put in the descrpitor ejb-jar.xml, if we must remove or
> keep tags referenced a primary key (such <prim-key-class>....)?
You describe a feature which depends on your application server. So read
the docs and stick to the EJB spec in your ejb-jar.xml.
-marek
Salim - 21 Dec 2004 13:28 GMT
>> I'm using EJB and i have a question about Entity Bean component. I read
>> that we can create entity bean without primary key, but one does not
[quoted text clipped - 6 lines]
>
> -marek
thanks
indeed, I read the documentation of my application server, and I found that
when one creates create an entity bean without primary key, by default the
application server assign to it a key which is defined as being the Obejct
of this entity bean. thus we must put to put the tag < drawn with four
pin-key-class > with java.lang.Object as value: " <
prim-key-class>ava.lang.Object<prim-key-class > ".