> The Primary Key Class is an object that may contain any > numbers of attributes to uniquely identify an entity bean > data instance. So What I have to do for specify, for example, > three attributes in an Primary Key Class using xdoclet tags ?
Mark each field that is part of the primary key with @ejb.pk. For example for EJB 2.0 you would write, /** * class-level @ejb tags here * ... */ public abstract class MyBean implements EntityBean { // other code removed for brevity... /** * @ejb.pk * other method-level tags here */ public abstract int getPkField1(); /** * @ejb.pk * other method-level tags here */ public abstract int getPkField2(); /** * @ejb.pk * other method-level tags here */ public abstract int getPkField3(); // other code removed for brevity... } Now ensure that your ant build file contains an <ejbdoclet/> task that contains an <entitypk/> task to generate a primary key class for MyBean that contains three fields. Craig ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user