-->
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: update query fired for objects those have not got dirty
PostPosted: Tue May 18, 2004 2:08 am 
Beginner
Beginner

Joined: Tue Feb 17, 2004 7:53 am
Posts: 24
i am having a problem in hibernate. i have an object graph say as follows :

A__
|
| (collection of B)
|__
B

B's collection id cascaded "all" on A object.

i fetch an object of A by id and update its primitive fields. but when i call update method of session for updating A, hibernate fires update query for B's objects even though i have not made them dirty. and another main thing is that i am finding and updating objects using different sessions.

one solution that i could look for is use select-before-update attribute of class tag (for using for B class) but that would be too costly for this purpose.
Isn't there any way hibernate track this dirty checking?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 18, 2004 2:42 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
No.
Unless you implement a smart interceptor

_________________
Emmanuel


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.