[JBoss-user] [EJB/JBoss] - Re: CMP - composite primary key - @ejb.primkey spec

2004-11-05 Thread lameguy
Thanks Red, I got that part working now. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854040#3854040 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854040 --- Thi

[JBoss-user] [EJB/JBoss] - Re: CMP - composite primary key - @ejb.primkey spec

2004-11-03 Thread redBeard15
No, do not specify the @ejb.bean primkey-field tag/attribute for beans with composite keys. Only specify the @ejb.pk-field tag on the getters/setters of the fields corresponding to your composite key. Do not use it in your 'getPK()' method. View the original post : http://www.jboss.org/index.

[JBoss-user] [EJB/JBoss] - Re: CMP - composite primary key - @ejb.primkey spec

2004-11-03 Thread lameguy
Thanks, I'm stiill reading up on one article: http://www-106.ibm.com/developerworks/library/j-santa1/ Anyway, yes, i did put @ejb.pk-field method level tags on getters. But do we need @ejb.bean primkey-field still? I guess we do - but we specify "field name" - NOT "column name". so... here's w

[JBoss-user] [EJB/JBoss] - Re: CMP - composite primary key - @ejb.primkey spec

2004-11-02 Thread redBeard15
I found that one cannot specify the 'primkey-field' attribute on the @ejb.bean tag if you have a composite key for the bean. You must specify @ejb.pk-field tags on all of the getter/setter methods that define your composite key. Then, if you specify the subtask in the task in your build fil

[JBoss-user] [EJB/JBoss] - Re: CMP - composite primary key - @ejb.primkey spec

2004-11-01 Thread lameguy
So, I've implemented a primary key class "GroupMembershipKey" -- I still need to know what I should specify for @ejb.bean primkey-field attribute. My understanding is that @ejb.bean primkey-field is not mandatory. Will it suffice if I just specify @ejb.pk-field on primary key getters? Example:

[JBoss-user] [EJB/JBoss] - Re: CMP - composite primary key - @ejb.primkey spec

2004-11-01 Thread lameguy
Think I found part of the answer (Still need to know what XDoclet tags I need to specify) - Quoting J2EE Tutorial from Sun: Chapter: "Primary Keys for Container-Managed Persistence" If the primary key class does not belong to the J2SE or J2EE standard libraries, then you must implement the clas