-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: One-to-one bidirectional mapping wiith shared key problem
PostPosted: Tue Aug 22, 2006 11:30 pm 
Newbie

Joined: Tue Aug 22, 2006 10:52 pm
Posts: 3
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.