| Hibernate version: 3.1
 Hello,
 
 I have what I hope is a simple question:
 
 I have Hibernate Objects all with optimistic-lock="version" set (ie. using Hibernate's Automatic Versioning).  If I read an object from the database, then modify that object, I would have expected its version to be automatically incremented immediately (I received this impression from the documentation).  But it looks to me like the version is only incremented after a Flush.
 
 Is this true?  Are versions only incremented after the data has been flushed to the database?
 
 thanks!
 
 
 |