[jboss-user] [EJB 3.0] - Reverse entity Mapping on a @SecondaryTable

ablevine1 do-not-reply at jboss.com
Wed Apr 18 15:12:20 EDT 2007


Is there any way to have a multi-table mapped object where primary table has a foreign key column to the secondary table??  The reason I want to do this is because I am dealing with legacy tables and need to have the main primary key of the object reference the primary key of the primary table, but the primary table has a foregin key reference to the secondary table but not vice-versa. Is this possible??  It seems the the @SecondaryTable annotation only supports the secondary table having a foregn key to the primary table

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

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



More information about the jboss-user mailing list