Author: dstephan
Date: 2008-12-16 17:26:08 -0500 (Tue, 16 Dec 2008)
New Revision: 15702
Modified:
core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/persister/entity/AbstractEntityPersister.java
Log:
JBPAPP-1259 -Backport HHH-3584 - Modified getPropertiesToUpdate to check if version
property has been marked as updateable==false before adding.
Modified:
core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/persister/entity/AbstractEntityPersister.java
===================================================================
---
core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/persister/entity/AbstractEntityPersister.java 2008-12-16
22:24:53 UTC (rev 15701)
+++
core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/persister/entity/AbstractEntityPersister.java 2008-12-16
22:26:08 UTC (rev 15702)
@@ -3088,7 +3088,7 @@
propsToUpdate[property] = true;
}
}
- if ( isVersioned() ) {
+ if ( isVersioned() && updateability[getVersionProperty() ]) {
propsToUpdate[ getVersionProperty() ] =
Versioning.isVersionIncrementRequired( dirtyProperties, hasDirtyCollection,
getPropertyVersionability() );
}