Hi,

I'm not sure this is the right forum for this question, this forum is for jboss 
development.
But the answer is:
If you third table has "extra infos" (means fields), it must be declared as a separate 
entity bean for theses fields. But there is no restriction to use this table as a 
third table in a n:m relationship. I use it myself, not as a feature, but to define 
relationships between 2 tables joined by a third table. 
Ex:
Table A (IdA,description)
Table B (IdB,description)
Table C (IdA,IdB,description)

Then you can define 3 entities (EntityA, EntityB, EntityC)
and 3 relationships:
1:N between EntityA and EntityC
1:N between EntityB and EntityC
N:M between EntityA  and EntityB  with EntityC as a third table.







I define a 1:n relationship at each side, and n:m relationship between 
XDoclet 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836849#3836849

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836849



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to