For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > December 2004 > ejb









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author ejb
Bouzitouna Salim

2004-12-20, 8:58 am

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

2004-12-20, 3:58 pm

Bouzitouna Salim wrote:
> 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

2004-12-21, 3:58 pm


"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 > ".




Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com