[hibernate-commits] Hibernate SVN: r15699 - core/branches/Branch_3_2/src/org/hibernate/persister/entity.
hibernate-commits at lists.jboss.org
hibernate-commits at lists.jboss.org
Tue Dec 16 17:23:40 EST 2008
Author: dstephan
Date: 2008-12-16 17:23:40 -0500 (Tue, 16 Dec 2008)
New Revision: 15699
Modified:
core/branches/Branch_3_2/src/org/hibernate/persister/entity/AbstractEntityPersister.java
Log:
HHH-3584 - Modified getPropertiesToUpdate to check if version property has been marked as updateable==false before adding.
Modified: core/branches/Branch_3_2/src/org/hibernate/persister/entity/AbstractEntityPersister.java
===================================================================
--- core/branches/Branch_3_2/src/org/hibernate/persister/entity/AbstractEntityPersister.java 2008-12-16 11:49:22 UTC (rev 15698)
+++ core/branches/Branch_3_2/src/org/hibernate/persister/entity/AbstractEntityPersister.java 2008-12-16 22:23:40 UTC (rev 15699)
@@ -3083,7 +3083,7 @@
propsToUpdate[property] = true;
}
}
- if ( isVersioned() ) {
+ if ( isVersioned() && updateability[getVersionProperty() ]) {
propsToUpdate[ getVersionProperty() ] =
Versioning.isVersionIncrementRequired( dirtyProperties, hasDirtyCollection, getPropertyVersionability() );
}
More information about the hibernate-commits
mailing list