Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / JavaBeans / December 2004

Tip: Looking for answers? Try searching our database.

ejb

Thread view: 
Bouzitouna Salim - 20 Dec 2004 11:35 GMT
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
Marek Lange - 20 Dec 2004 12:49 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 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 > ".


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.