1. Hibernate saveOrUpdate - Cascade - Automatic Versioning stackoverflow.comMy question is How can I get new version number of the object after calling saveOrUpdate method? Please check following scenario
|
2. saveOrUpdate() reving version on unchanged objects! forum.hibernate.orgI have the following issue where Foo is using hibernate's automatic versioning: Foo foo = new Foo(); // Inserts new Foo object with version 0 as expected foo = session1.saveOrUpdate(foo); // The following line revs the version of foo to 1 and Session.isDirty() // will return true even though *no* modifications have been made // to foo since the first save. ... |
3. saveOrUpdate - Cascade - Automatic Versioning forum.hibernate.orgclass ServiceInfo{ int serviceId; Set |