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
This commit is contained in:
Dave Stephan 2008-12-16 22:24:53 +00:00
parent 4fa064b209
commit d3b224103d
1 changed files with 1 additions and 1 deletions

View File

@ -3154,7 +3154,7 @@ public abstract class AbstractEntityPersister
propsToUpdate[property] = true;
}
}
if ( isVersioned() ) {
if ( isVersioned() && updateability[getVersionProperty() ]) {
propsToUpdate[ getVersionProperty() ] =
Versioning.isVersionIncrementRequired( dirtyProperties, hasDirtyCollection, getPropertyVersionability() );
}