2 Replies Latest reply on Apr 19, 2007 1:48 PM by ablevine1

    Reverse entity Mapping on a @SecondaryTable

    ablevine1

      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