Although this is not a xdoclet forum I'll send an answer.
For such a n-1 relation we use this (replace mbi_festa with person and 
mbi_feber with family for your need):
        /**
         * @ejb.interface-method
         * @ejb.relation
         *       name="MbiFesta-MbiFeberBereichNr"
         *       role-name="n-mbi_festa-1-mbi_feber_bereich_nr"
         *       multiple="no"
         *       target-multiple="yes"
         *       target-cascade-delete="no"
         *       target-ejb="MbiFeber"
         *       target-role-name="1-mbi_feber_bereich_nr-n-mbi_festa"
         * @jboss.relation
         *       related-pk-field="bereichNr"
         *       fk-column="bereich_nr"
         * @jboss.relation-read-ahead strategy="on-find"
         */
        public abstract biz.mbisoftware.fn.ejb.entity.MbiFeberLocal      
getMbiFeberBereichNr();
        /**
         * @ejb.interface-method
         */
        public abstract void setMbiFeberBereichNr(
        final biz.mbisoftware.fn.ejb.entity.MbiFeberLocal mbiFeber );


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866832#3866832

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866832


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to