Adam, Yes, I actually tried that yesterday and it finally worked.
Thanks very much for your reply! Regards, Michael -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Sent: Montag, 3. M�rz 2003 05:32 To: [EMAIL PROTECTED] Subject: Re: [Xdoclet-user] Problem with ValueObject and Primary Key ****************** /** * @ejb.pk-field * @ejb.persistent-field * @ejb.persistence * column-name="id" * sql-type="INTEGER" * @struts.form-field * form-name="id" * @ejb.value-object * match="normal" */ public abstract Integer getId(); The above is wrong because pk cannot be set to id which is an Integer!! ************** You have class.id marked as the PK field with the @ejb.pk-field marker. So, when the support objects are generated, they will all view the primkey field as an Integer, and thusly create methods and routines that expect and use an Integer, not a BasePK object. I believe if you change the getId signature in the Bean class to match BasePK, it should generate the appropriate code. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
