Removed deprecated InFlightMetadataCollector.getClassmateContext()

Signed-off-by: Jan Schatteman <jschatte@redhat.com>
This commit is contained in:
Jan Schatteman 2022-03-03 00:06:14 +01:00 committed by Steve Ebersole
parent 6564abe4c7
commit 41016674cb
3 changed files with 1 additions and 17 deletions

View File

@ -369,11 +369,6 @@ public class InFlightMetadataCollectorImpl implements InFlightMetadataCollector
typeDefRegistry.register( typeDefinition );
}
@Override
public ClassmateContext getClassmateContext() {
return bootstrapContext.getClassmateContext();
}
@Override
public void registerValueMappingResolver(Function<MetadataBuildingContext, Boolean> resolver) {
if ( valueResolvers == null ) {

View File

@ -295,17 +295,6 @@ public interface InFlightMetadataCollector extends Mapping, MetadataImplementor
NaturalIdUniqueKeyBinder locateNaturalIdUniqueKeyBinder(String entityName);
void registerNaturalIdUniqueKeyBinder(String entityName, NaturalIdUniqueKeyBinder ukBinder);
/**
* Access to the shared Classmate objects used throughout Hibernate's
* bootstrap process.
*
* @return Access to the shared Classmate delegates.
*
* @deprecated Use {@link BootstrapContext#getClassmateContext()} instead.
*/
@Deprecated
ClassmateContext getClassmateContext();
void registerValueMappingResolver(Function<MetadataBuildingContext,Boolean> resolver);
void addJavaTypeRegistration(Class<?> javaType, JavaType<?> jtd);

View File

@ -276,7 +276,7 @@ public abstract class SimpleValue implements KeyValue {
this.attributeConverterDescriptor = new ClassBasedConverterDescriptor(
converterClass,
false,
( (InFlightMetadataCollector) getMetadata() ).getClassmateContext()
( (InFlightMetadataCollector) getMetadata() ).getBootstrapContext().getClassmateContext()
);
return;
}