When an N:N relationship asks for any extra attributes to be part of the association itself I see no other sollution but to create an association class. This would, inevitably, result in 2 N:1 relationships.
Cheers, Marco ----- Original Message ----- From: "Lai Le Phi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 23, 2003 3:27 AM Subject: [Xdoclet-user] attribute on M:M relationship > Hi all, > > I knew that we can use @jboss:relation-table to create > a relation table for an M:M relationship. But what > could i do when i need an attribute on this > relationship ? > For example, i have the M:M relationship between > student and certification: > STUDENT LEVEL CERTIFICATION > --------- ----------- ------------ > stdID stdID cerID > stdNAME cerID cerName > level > > Moreover, i use: > * @jboss.relation-mapping style="relation-table" > * @jboss.relation-table table-name="LEVEL" > > Everythign is OK except "level" attribute. Does > XDoclet has any tag to declare "level" attribute on > the LEVEL ? > Everything seems to be very easily if i use the > approach of splitting my M:M CMR relation into 2 N:1 > relation. But i need the confirmation of declaring > tags to define attribute on M:M relationship. > I have already seen a similar question on this forum. > It was about how to declare ejb:finder on the M:M > relationship, but it has no answers uptill now. > Wait for all your answers, > thanks in advance, > > > __________________________________ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > ------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
