I am trying to set up a 1:N relationship where the N side of the
relationship has a compound primary key. The documentation falls a bit short
in this regards. I have the following set up, which works fine if the target
has a simple primary key:

        /**
         * @ejb.interface-method
         *
         * @ejb.relation
         *      name="Xxx-Yyy"
         *      role-name="Xxx-has-Yyys"
         * @jboss.relation
         *    fk-constraint="false"
         *      related-pk-field="uniqueId"
         *      fk-column="uniqueId_FK"
         */
        public abstract Collection getYyys();
        public abstract void setYyys(Collection yyys);

However, if the target (Yyy, in this case) has a compound primary key, does
one specify this using ejbdoclet?

Thanks in advance,
Joel




-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to