-->
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: Evicted object still being persisted
PostPosted: Wed Mar 15, 2006 8:46 am 
Newbie

Joined: Fri Oct 01, 2004 8:36 pm
Posts: 8
Hi,

I'm trying to figure out what the exact behaviour of session.evict(object) should be. I'm trying to prevent an object from being updated by Hibernate with the evict method, but the session is always updating the DB record when the session closes. My pseudo code is something like:

load object by id
call evict(object)
change some properties of the object
close the session

Is this correct? I'm using Spring to access Hibernate and am wondering if this could be causing any problems? The session is being controlled by an opensessioninview http filter.

Hibernate version:
3.1


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.