HHH-15741 Explicit declaration assigned identifier generator does not work

This commit is contained in:
Andrea Boriero 2022-11-29 16:43:02 +01:00 committed by Andrea Boriero
parent b5a594004f
commit c67b3f984a
1 changed files with 3 additions and 0 deletions

View File

@ -787,6 +787,9 @@ public class BinderHelper {
|| identifierGeneratorStrategy.equals( "seqhilo" );
if ( generatorType == null || !avoidOverriding ) {
id.setIdentifierGeneratorStrategy( identifierGeneratorStrategy );
if ( identifierGeneratorStrategy.equals( "assigned" ) ) {
id.setNullValue( "undefined" );
}
}
//checkIfMatchingGenerator(definition, generatorType, generatorName);
parameters.putAll( definition.getParameters() );