[jboss-user] [EJB 3.0] - @ManyToMany mapping with additional columns for ordering

mwbl do-not-reply at jboss.com
Wed Jul 12 13:35:08 EDT 2006


I have run into the following situation with a manytomany relationship: 

table A:
int apk
...
...

table B:
int bpk
...
...

table A_B:
int apk
int bpk
int sequenceId

where the sequenceId in the mapping table is used to order the children of type B for a parent A (B can have more than one parent, so the sequence id cant be in table B)  how would i map this relationship with EJB3 annotations?


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

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



More information about the jboss-user mailing list