Register / Login
Win a copy of
The Little Book of Impediments (e-book only)
this week in the
Agile and Other Processes
Object Relational Mapping
One-to-One Mapping in Hibernate
posted 8 years ago
I want to declare a One-To-One association to the same class.
Person -> substiude -> Person
my mapping is:
<property name="substituteId" unique="true"/>
<one-to-one name="substitude" class="Person"
But no foreign key is genrated to the substitudeId.
What is my mistake?
Can someone help?
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
Hibernate: Foreign key must have same number of columns as the referenced primary key
Foreign key must have same number of columns as the referenced primary key
hibernate creating duplicate ForeignKey index
An hibernate error about one-to-one