HHH-11979 : Invalid SQL when force increment version of inherited entity

(cherry picked from commit dfecae09c5)
This commit is contained in:
Gail Badner 2018-05-30 18:22:27 -07:00
parent b361d4d49d
commit 2be3d40751
1 changed files with 1 additions and 1 deletions

View File

@ -1728,7 +1728,7 @@ public abstract class AbstractEntityPersister
update.setComment( "forced version increment" );
}
update.addColumn( getVersionColumnName() );
update.addPrimaryKeyColumns( getIdentifierColumnNames() );
update.addPrimaryKeyColumns( rootTableKeyColumnNames );
update.setVersionColumnName( getVersionColumnName() );
return update.toStatementString();
}