[hibernate-dev] Is @SecondaryTable required when a join table is specified?
gbadner at redhat.com
Fri Mar 1 01:13:46 EST 2013
I noticed that org.hibernate.test.annotations.onetoone.OneToOneTest and OptionalOneToOnePKJCTest uses this mapping:
Son.father specifies a join-table ("father_son"), but has no <secondary-table>. There is no @SecondaryTable defined in Son (this is a unidirectional association).
I thought that @SecondaryTable was required when an association uses a join table. Currently, that's how it works in the new metamodel.
Should it be optional?
More information about the hibernate-dev