-->
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: Example of one-to-one bidirectional relationship
PostPosted: Sat Mar 19, 2005 9:22 am 
Beginner
Beginner

Joined: Sun May 16, 2004 3:53 pm
Posts: 47
Location: Belo Horizonte, Brazil
Hibernate version:2.0.3

Hi.
It might seem stupid, but I'm having problems on a one-to-one birectional relationship.
I got table ADDRESS (pk is ADDRESS_ID) and table COMPANY (pk is COMPANY_ID and fk is FK_ADDRESS_ID).
When I try to save a Company object, the information related to the Address object is not being saved (and Company object contains a Address object naturally).
Could anyone post a example of a bidirectional one-to-one relationship for hibernate 2.0.3?
Thanks.


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.