HHH-11979 : Invalid SQL when force increment version of inherited entity
This commit is contained in:
parent
cc9b3eb183
commit
dfecae09c5
|
@ -1833,7 +1833,7 @@ public abstract class AbstractEntityPersister
|
||||||
update.setComment( "forced version increment" );
|
update.setComment( "forced version increment" );
|
||||||
}
|
}
|
||||||
update.addColumn( getVersionColumnName() );
|
update.addColumn( getVersionColumnName() );
|
||||||
update.addPrimaryKeyColumns( getIdentifierColumnNames() );
|
update.addPrimaryKeyColumns( rootTableKeyColumnNames );
|
||||||
update.setVersionColumnName( getVersionColumnName() );
|
update.setVersionColumnName( getVersionColumnName() );
|
||||||
return update.toStatementString();
|
return update.toStatementString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue