gavin wrote:
You mean *optimistic locking*.
Also be sure you understand the implications of using a second-level cache in this environment.
1. Is second-level cache optional?
2. Is it off by default?
3. Can I control the 2nd level cache on a table-by-table basis? For example, if I want, can I turn it ON to only those tables which are not updated by the legacy app?
Regarding the versioning: Without adding the version column to the tables, is there another way to handle Optimistic Locking in hibernate? For example, load the data and compare before updating automatically? If so, can you point me to the right resource?
Sorry for asking too many questions. Hibernate has been making our life easier and don't want to get rid of it at this stage, just because we have to co-exist with the legacy application.