I have a persistent hibernate object I obtained using session.save(object)
I changed it since.
I want to execute session.evict(object)
Doing session.evict(obj) will remove the object instance from the session cache. Therefore if you are saving the object for the first time, you will have to explicitly commit via session.save(obj) before evicting the object from the cache. Subsequent update calls should follow through session.saveOrUpdate(obj) or session.update(obj) before calling evict to remove the loaded object from the cache.
In doing so means you will have to explicitly call session.load(obj) or session.get(obj) when you need the instance of the object back in the cache.