light cleanup of AnnotationBinder

This commit is contained in:
Gavin King 2022-11-05 00:49:16 +01:00
parent 3d9bf07ac8
commit c7b42097aa
2 changed files with 789 additions and 709 deletions

View File

@ -206,7 +206,7 @@ public class EntityBinder {
public static void bindEntityClass( public static void bindEntityClass(
XClass clazzToProcess, XClass clazzToProcess,
Map<XClass, InheritanceState> inheritanceStates, Map<XClass, InheritanceState> inheritanceStates,
HashMap<String, IdentifierGeneratorDefinition> generators, Map<String, IdentifierGeneratorDefinition> generators,
MetadataBuildingContext context) { MetadataBuildingContext context) {
if ( LOG.isDebugEnabled() ) { if ( LOG.isDebugEnabled() ) {
LOG.debugf( "Binding entity from annotated class: %s", clazzToProcess.getName() ); LOG.debugf( "Binding entity from annotated class: %s", clazzToProcess.getName() );
@ -252,7 +252,7 @@ public class EntityBinder {
private void handleIdentifier( private void handleIdentifier(
PropertyHolder propertyHolder, PropertyHolder propertyHolder,
Map<XClass, InheritanceState> inheritanceStates, Map<XClass, InheritanceState> inheritanceStates,
HashMap<String, IdentifierGeneratorDefinition> generators, Map<String, IdentifierGeneratorDefinition> generators,
InheritanceState inheritanceState) { InheritanceState inheritanceState) {
final ElementsToProcess elementsToProcess = inheritanceState.postProcess( persistentClass, this ); final ElementsToProcess elementsToProcess = inheritanceState.postProcess( persistentClass, this );
final Set<String> idPropertiesIfIdClass = handleIdClass( final Set<String> idPropertiesIfIdClass = handleIdClass(
@ -858,7 +858,7 @@ public class EntityBinder {
InheritanceState inheritanceState, InheritanceState inheritanceState,
MetadataBuildingContext context, MetadataBuildingContext context,
PropertyHolder propertyHolder, PropertyHolder propertyHolder,
HashMap<String, IdentifierGeneratorDefinition> generators, Map<String, IdentifierGeneratorDefinition> generators,
Set<String> idPropertiesIfIdClass, Set<String> idPropertiesIfIdClass,
ElementsToProcess elementsToProcess, ElementsToProcess elementsToProcess,
Map<XClass, InheritanceState> inheritanceStates) { Map<XClass, InheritanceState> inheritanceStates) {