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: inverse in one-to-many associations
PostPosted: Fri Jun 02, 2006 2:36 pm 
Beginner
Beginner

Joined: Sat Dec 03, 2005 11:12 am
Posts: 27
Hi,

I was going thru Hibernate reference documentation. It says:
All bi-directional associations need one side as inverse. In a one-to-many association it has to be the many-side.

but, i have seen a special case in my project where inverse is on one-side in one-to-many association.

My first question is can we use inverse on one side in one-to-many association. if yes in what case can we use it??

Is it ok to use inverse="true" on one side relation.

Thanks,


Top
 Profile  
 
 Post subject: inverse in one-to-many associations
PostPosted: Fri Jun 02, 2006 2:57 pm 
Newbie

Joined: Sat May 22, 2004 4:57 pm
Posts: 9
I don't think <many-to-one> supports inverse, at least not in Hibernate 2.x.
As a general rule, it's almost always easier to manipulate the many-to-one side anyway.

-- Bill[/quote]


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.