Skip to content

Commit

Permalink
Removed deprecated InFlightMetadataCollector.getClassmateContext()
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Schatteman <[email protected]>
  • Loading branch information
jrenaat authored and sebersole committed Mar 9, 2022
1 parent 6564abe commit 4101667
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,6 @@ public void addTypeDefinition(TypeDefinition typeDefinition) {
typeDefRegistry.register( typeDefinition );
}

@Override
public ClassmateContext getClassmateContext() {
return bootstrapContext.getClassmateContext();
}

@Override
public void registerValueMappingResolver(Function<MetadataBuildingContext, Boolean> resolver) {
if ( valueResolvers == null ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,17 +295,6 @@ void addTableNameBinding(
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public void setTypeName(String typeName) {
this.attributeConverterDescriptor = new ClassBasedConverterDescriptor(
converterClass,
false,
( (InFlightMetadataCollector) getMetadata() ).getClassmateContext()
( (InFlightMetadataCollector) getMetadata() ).getBootstrapContext().getClassmateContext()
);
return;
}
Expand Down

0 comments on commit 4101667

Please sign in to comment.