Hibernate version:3.2.0 cr2
Hibernate annotations version:3.2.0 cr1
Name and version of the database you are using:PostgreSQL 8.1.4
I followed the Hibernate annotations doc to make the one-to-one mapping with shared primary key. But when I generate the db schema by using the SchemaUpdate, the relation is not created.
Then, I followed the EJB3 spec to make the relation, but I could not get the shared key relation. It is just a one-to-one relation with a foreign key column.
Does anyone know how to make a one-to-one bidirectional relation with the shared primary key?
P.S: I want to use the JPA standard annotations, not the Hibernate annotations extension.
|