I've been experimenting with optimistic locking, and I couldn't find a class level hibernatedoclet setting to enable the "optimistic-lock" feature. This was surprising because nearly all of the hibernate meta-data can be captured in xdoclet tags.
Is there a specific technical reason for this, or has no one yet spent the time to contribute a patch?
I would expect:
Code:
@hibernate.class optimistic-lock = "all|version|dirty|none"
The only tricky case I can think of if there is also a property flagged as a <version> indicator. In that case, the optimisitc-lock setting would be ignored, or forced to take on the value 'version'.
Thanks in advance,
Christian