-->
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: Automatic Update on list loading
PostPosted: Mon Jul 24, 2006 11:42 pm 
Newbie

Joined: Fri Sep 09, 2005 11:40 am
Posts: 12
Hibernate version:3

I have a Hibernate object that contains other objects. When the Hibernate object is loaded it is causing an update to the database to occur which is causing some other problems. When the hibernate object is loaded one of the objects may or not be allowed to be viewed by the user. This is determined by another query. We null this object and based on the query will load the allowed data. I believe this reloading is causing an update to occur. This causes problems because of a database trigger that is fired during an update. Unfortunately we are migrating a legacy system so a lot of things are happening that we are not sure of the reasoning and the legacy system must continue to operate while we gradually roll out new migrated portions of the system.

Is there a way to prevent this behavior of undesired updates?


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.