| Hibernate version: 3.2.6.ga 
 I have a Criteria query with the following code:
 ...
 Logger.info(this, " dirty session? " + this.getSession().isDirty());
 List<BasePersistent> objs = criteria.list();
 Logger.info(this, " dirty session? " + this.getSession().isDirty());
 ...
 
 The output for this piece of code is:
 false
 true
 
 So criteria.list() is causing my object to be dirtied and when the session is committed the object's version is incremented. I am pretty sure that querying for an object should not be considered to be a modification to the objects in the result set. Any ideas?
 
 Thanks,
 
 Update:
 Doh! equals/hashcode weren't implemented properly
 
 
 |