-->
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: How does hibernate detect which changed objects to persist?
PostPosted: Mon Dec 19, 2005 6:00 am 
Newbie

Joined: Tue Apr 12, 2005 12:01 pm
Posts: 10
Location: London, UK
Hello all,

Just a simple question. How does hibernate figure out which objects changed in a collection and then just persist those changed object inside collection.

_________________
Many thanks...
Arup


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 28, 2005 6:36 am 
Beginner
Beginner

Joined: Sat Dec 17, 2005 1:24 pm
Posts: 42
Location: Berlin, Germany
Hi!

I found that an interesting question, which I could not answer. But I found by accident a post in this thread:

http://forum.hibernate.org/viewtopic.php?p=2283471#2283471

where the author states

vilarneto wrote:
[...]This is expected, as stated everywhere: Hibernate detects changes in values by comparison, not by object identity (unless the property is a collection, which is not the case). There's even an example in Hibernate in Action, p. 74, where a getter returns new instances of Strings.


All the best,

René


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.