No, option one is "Application Transaction implementation using Long Session, with interceptors and possibly thread local's".
In this case, if you can't update the database schema (and put in a version or timestamp column), you should use optimistic-lock="all" on your class mappings, telling Hibernate to compare "all fields" of old and new rows to check for concurrent updates.
Another application accessing the same tables concurrently would usually implement the same strategy (if it doesn't have an optimistic "last commit wins" strategy).
_________________ JAVA PERSISTENCE WITH HIBERNATE http://jpwh.org Get the book, training, and consulting for your Hibernate team.
|