-->
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.  [ 5 posts ] 
Author Message
 Post subject: Inverse end persitency
PostPosted: Mon Feb 02, 2004 9:08 am 
Regular
Regular

Joined: Wed Sep 10, 2003 7:09 am
Posts: 63
Hi,

I am using hibernate 2.1.1 in my application and I'm having problems mapping my bidireccional associations.

In the following example, I have a class user and a class group. Each user participates in a list of groups and each group has a list of users.

I am mapping this association difining the group to user direction has the inverse side.

When I try to save an user, the group is updated, but when I try to save a group, there are no changes in the database. This is in the hibernate documentation.

My question is: how can I solve this problem? Are the next hibernate versions going to support this feature?

Thanks for your attention,
Joao Rangel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 02, 2004 9:13 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
It is of course supported, but you haven't given enough information. Please read this: http://www.hibernate.org/ForumMailingli ... AskForHelp

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 02, 2004 10:19 am 
Regular
Regular

Joined: Wed Sep 10, 2003 7:09 am
Posts: 63
Hi,

In the manual it says: "Changes made only to the inverse end of the association are not persisted."

I appreciate your help anyway, but I didn't agree when you said it was incomplete information, beacuse you should know why you write that in the manual.

My question is only: how can I solve this hibernate limitation? Are you planning to solve it in future versions?

Thanks again,
Joao Rangel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 02, 2004 10:24 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
I don't think you understand this correctly. Please read http://www.hibernate.org/155.html


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 02, 2004 11:06 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
There is no limitation, please specify your problem.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.