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
|