Hi,

> From: Ionel GARDAIS [mailto:[EMAIL PROTECTED]
 
> Optionaly, when will the @jboss tag support
> unidirectional 1:N relationship ?

I think, what you need is already there. 

I have the following:

  [PersonBean]--1-----n-[EmailBean]

PersonBean:
   /**
     * @ejb.relation 
     *  name="PERSON-TO-EMAIL-RELATION"
     *  role-name="person-has-emails"
     *  target-ejb="Email"
     *  target-role-name="email-has-person"
     *  target-multiple="no"
     *  
     * @ejb.interface-method view-type="local"
     *
     * @jboss.relation-mapping style="foreign-key"
     *
     * @jboss.target-relation
     *      fk-constraint="false"
     *      fk-column="emailfk"
     *      related-pk-field="persID"
     */
        Collection getEmails();

EmailBean:
     /**
      * @ejb.relation
      *     name="PERSON-TO-EMAIL-RELATION"
      *     role-name="email-has-person"
      *     target-ejb="Person"
      *     target-role-name="person-has-emails"
      *     target-multiple="no"
      *
      * @ejb.interface-method view-type="local"
      *
      * @jboss.relation-mapping style="foreign-key"
      *
      * @jboss.relation
      *     fk-constraint="false"
      *     fk-column="emailfk"
      *     related-pk-field="persID"
      * 
      */
     public abstract test.interfaces.PersonLocal getPerson();

Here I can add several emails to a person and can also retrieve
the person that matches an email.

Hope that helps

    Heiko


-- 
Bancotec GmbH      EMail: [EMAIL PROTECTED]
Calwer Str. 33     Telefon: +49 711 222 992 900
D-70173 Stuttgart  Telefax: +49 711 222 992 999
Ein Unternehmen der Cellent AG http://www.cellent.de/


-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to