-->
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.  [ 2 posts ] 
Author Message
 Post subject: one to one mapping
PostPosted: Tue Apr 26, 2011 12:39 pm 
Newbie

Joined: Tue Apr 26, 2011 12:37 pm
Posts: 3
hi

im trying to create a simple one-to-one mapping in my hbm files.
For Example:

<one-to-one name="account" class="...Account" />
is in the Tutor.hbm.xml

<one-to-one name="tutor" class="...Tutor" />
is in the Account.hbm.xml

My many to one, one to many and many to many mappings all work this way, but
one to one doesnt. i would expect him to create me an account id
column in my tutor table and vice versa for the account table, but he does not.
what am i doing wrong?

greez


Top
 Profile  
 
 Post subject: Re: one to one mapping
PostPosted: Tue Apr 26, 2011 2:52 pm 
Newbie

Joined: Tue Apr 26, 2011 12:37 pm
Posts: 3
got it. hibernate mapps internal ids of both tables


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

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.