Hi,
In the persistence tag we can only define the table name at the class level and
the colunm name and the sql and jdbc type at the method level
In the ejb.bean tag for the attribute "primkey-field" what is the value that needs to
be given?
Otherwise the primary key entry has to be made manually to the ejb-jar.xml everytime
the code changes.
Regards
Shanthi
-----Original Message-----
From: Andrew Stevens [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 3:29 PM
To: [EMAIL PROTECTED]
Subject: Re: [Xdoclet-user] Composite Primary Key
On Thu, 2004-03-18 at 08:58, Konstantin Priblouda wrote:
> --- "S, Shanthi (Cognizant)"
> <[EMAIL PROTECTED]> wrote:
> > Hi Everybody,
> >
> > I have an entity bean which composes of composite
> > primary key, but what are the tags in xdoclet by
> > which a composite key can be defined.
>
>
> xdoclet supports only class as composite key, so
> tag getter of your composite key with
> @hibertate.composite-id ,
> set generator to assigned and tag properties of
> respective class.
Hibernate? He said he was using entity beans...
Shanthi, you'll need to use ejbdoclet's <entitypk> subtask, and tag the relevant
getters in your bean class with @ejb.pk-field as well as the usual persistent field
tag. See
http://xdoclet.sourceforge.net/tags/[EMAIL PROTECTED](0..1)
Andrew.
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo
technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
This e-mail and any files transmitted with it are for the sole use of the intended
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.
Visit us at http://www.cognizant.com