I'm so confused with hibernate tags of xdoclet. Who could give an example of 
@hibernate tags' usage in many-to-many scenario. For example, table A (id, name)and 
Table B(id, name), A maps many-to-many to B with another relation table R(A_id, B_id). 
So how do we express this kind of relationship with hibernate tags of xdoclet. I need 
to use the intermediate m-n relation table R to connect these two entities and use the 
following tags to mark it which is certainly not correct because hibernate task for 
ant doesn't generate the intermediate table R
 while put A_id, B_id directly in A and B. 
Any help is appreciated. 
Thanks a lot !
/**
 * @hibernate.class
 * table="A"
 *
 */
class A {
    private int id;
    private String name;
    private B [] Bs;
    /**
     * @hibernate.collection-many-to-many
     * column="A_id"
     */
     B [] getBs() {
          return Bs;
     } 
     ...
}

/**
 * @hibernate.class
 * table="B"
 *
 */
class B {
    private int id;
    private String name;
    private A [] As;
    /**
     * @hibernate.collection-many-to-many
     * column="B_id"
     */
     A [] getAs() {
          return As;
     } 
     ...
}




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to