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:
parent
4fa064b209
commit
d3b224103d
|
@ -3154,7 +3154,7 @@ public abstract class AbstractEntityPersister
|
|||
propsToUpdate[property] = true;
|
||||
}
|
||||
}
|
||||
if ( isVersioned() ) {
|
||||
if ( isVersioned() && updateability[getVersionProperty() ]) {
|
||||
propsToUpdate[ getVersionProperty() ] =
|
||||
Versioning.isVersionIncrementRequired( dirtyProperties, hasDirtyCollection, getPropertyVersionability() );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue