Code Comments
Programming Forum and web based access to our favorite programming groups.hi, 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>....)? Thank you Salim
Post Follow-up to this messageBouzitouna Salim wrote: > I'm using EJB and i have a question about Entity Bean component. I read th at > we can create entity bean without primary key, but one does not explain wh at > 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
Post Follow-up to this message"Marek Lange" <marek.lange@web.de> a écrit dans le message de news: 32o05vF3o6gnjU1@individual.net... > Bouzitouna Salim wrote: > > 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 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 > ".
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.