Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

ejb
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



Report this thread to moderator Post Follow-up to this message
Old Post
Bouzitouna Salim
12-20-04 01:58 PM


Re: ejb
Bouzitouna 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

Report this thread to moderator Post Follow-up to this message
Old Post
Marek Lange
12-20-04 08:58 PM


Re: ejb
"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 > ".





Report this thread to moderator Post Follow-up to this message
Old Post
Salim
12-21-04 08:58 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Beans archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:10 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.