HHH-12147 - Code improvement
This commit is contained in:
parent
00a07caf5b
commit
37df2bac74
|
@ -3338,9 +3338,13 @@ public final class AnnotationBinder {
|
|||
TableGenerators tableGenerators = annElt.getAnnotation( TableGenerators.class );
|
||||
if ( tableGenerators != null ) {
|
||||
for ( TableGenerator tableGenerator : tableGenerators.value() ) {
|
||||
IdentifierGeneratorDefinition idGenerator = buildIdGenerator(
|
||||
tableGenerator,
|
||||
context
|
||||
);
|
||||
generators.put(
|
||||
buildIdGenerator( tableGenerator, context ).getName(),
|
||||
buildIdGenerator( tableGenerator, context )
|
||||
idGenerator.getName(),
|
||||
idGenerator
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -3348,9 +3352,13 @@ public final class AnnotationBinder {
|
|||
SequenceGenerators sequenceGenerators = annElt.getAnnotation( SequenceGenerators.class );
|
||||
if ( sequenceGenerators != null ) {
|
||||
for ( SequenceGenerator sequenceGenerator : sequenceGenerators.value() ) {
|
||||
IdentifierGeneratorDefinition idGenerator = buildIdGenerator(
|
||||
sequenceGenerator,
|
||||
context
|
||||
);
|
||||
generators.put(
|
||||
buildIdGenerator( sequenceGenerator, context ).getName(),
|
||||
buildIdGenerator( sequenceGenerator, context )
|
||||
idGenerator.getName(),
|
||||
idGenerator
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue