From d3b224103d5edde345985963f336fedc93fe929f Mon Sep 17 00:00:00 2001 From: Dave Stephan Date: Tue, 16 Dec 2008 22:24:53 +0000 Subject: [PATCH] HHH-3584 - Modified getPropertiesToUpdate to check if version property has been marked as updateable==false before adding. git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15701 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- .../org/hibernate/persister/entity/AbstractEntityPersister.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java b/core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java index dd1d17446c..b80c30a17a 100644 --- a/core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java +++ b/core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java @@ -3154,7 +3154,7 @@ public abstract class AbstractEntityPersister propsToUpdate[property] = true; } } - if ( isVersioned() ) { + if ( isVersioned() && updateability[getVersionProperty() ]) { propsToUpdate[ getVersionProperty() ] = Versioning.isVersionIncrementRequired( dirtyProperties, hasDirtyCollection, getPropertyVersionability() ); }