Hello,

I managed to do it today by changing a couple of templates in the
EJB cartridge or so. It now autogenerates the PK classes, the right
deployment descriptors and the interface methods for coumpound PKs.

If you are interested, I will submit a patch next week-end.

Regards,

On Thu, Mar 24, 2005 at 08:06:12AM +0900, [EMAIL PROTECTED] wrote:
> With the EJB cartridge, is there a way to specify a coupound
> primary key for an entity bean ?
> 
> Right now, the EntityBean.vsl template has this statement for
> xdoclet : 
>   @ejb.pk generate="false" class="$identifier.type.fullyQualifiedName"
> 
> apparently, this uses only the type of one of the attributes
> marked with the <<Identifier>> stereotype.
> 
> If an entity bean has two or more <<Identifier>>, normally one
> makes a primary key class containing only the identifier attributes
> and specifies the <prim-key-class> and <primkey-field> tags in
> the ejb-jar.xml deployment descriptor. How this can be achieved
> with the EJB cartridge ?
> 


-------------------------------------------------------
This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content.  Register
by 3/29 & save $300 http://ads.osdn.com/?ad_id=6883&alloc_id=15149&op=click
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to