-->
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: understanding inverse
PostPosted: Sat Aug 30, 2008 11:59 am 
Beginner
Beginner

Joined: Wed May 14, 2008 2:06 pm
Posts: 21
I have entity Person which has many EmailAddress.
Class Person{
Set getEmailAddress();

Class EmailAddress {

Person getPerson();

My understanding with inverse,it should be used on many side so
I can use inverse=true on getPerson method and this means I make changes to Person from emailAddress and save emailAddress it will not save changes to person is this right ?
I tried with inverse="true" it did nor persists changes to person and also tried inverse="false" this mean I am telling hibernate to include person in insert update of email address is this right ? but it did not saved changes to person so please help me understand inverse , and If I say inverse="true" on method getEmailAddress in person I get invalid mapping why ?


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.