In hibernate 3.1 + EJB3 annotations, I'm using a hibernate managed version column (@Version). The act of reading an object (but not modifying it), causes its version column to be incremented at every single flush, even when the object is not dirty.
For example, I have an object type that is specifically designed to just hold data, and will perhaps be updated once every few months. In the course of a few runs on my application it ends up with a verson of around 90, when I've made no changes to the object whatsoever...
What would cause this aggressive version updating, and what can I do to prevent it?
Thanks,
Ryan
[/list]
|