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 ?
|
|