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/branches/Branch_3_2@15699 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Dave Stephan 2008-12-16 22:23:40 +00:00
parent 5b2dba9c0b
commit fb020ee573
1 changed files with 1 additions and 1 deletions

View File

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