From: Lai Le P. <phi...@ya...> - 2003-06-23 06:27:11
|
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 |