I'm missing something really obvious in defining a 1:N unidirectional
relationship.  Can someone please show the correct tags to use, and where to
place them.  This is specifically for jboss, too, if that makes a
difference.

Parent Table:
------------------
parentID
name


Child Table
-----------------
childId
parentId
name


here's my current revision.. which doesn't seem to work, either.

[parent class]

     /**
      * returns the children of this parent
      *
      * @ejb.interface-method
      *  @ejb.value-object
     *      aggregate="com.interfaces.ChildValue"
     *      aggregate-name="Child"
     *      members="com.interfaces.ChildLocal"
     *      members-name="Child"
     *      relation="external"
     *      type="Collection"
     *
     *  @ejb.relation
     *     name="parent-tochild"
     *     role-name="parent"
     *
     */
public abstract Collection getChildren();

[child class]
   /**
   * @ejb.pk-field
   * @ejb.persistent-field
   * @ejb.persistence
   *     column-name="childId"
   *     sql-type="NUMBER"
   * @ejb.interface-method
   * @ejb.value-object
   *   match="*"
   * @jboss.column-name
   *    name="childId"
   *
   * @ejb.target-relation
   *   name="parent-to-children"
   *   target-role-name="children"
   *   target-multiple="yes"
   *
   *
   **/
   public abstract java.lang.Integer getChildId();


thank you for any help!

-adam


-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to