HHH-18663 - Upgrade to hibernate-models 0.9.1

This commit is contained in:
Steve Ebersole 2024-09-30 13:27:10 -05:00 committed by Gavin King
parent df735cdebd
commit ee2d8a3765
3 changed files with 13 additions and 2 deletions

View File

@ -8,6 +8,7 @@ import java.net.URL;
import java.util.Collection; import java.util.Collection;
import org.hibernate.boot.registry.classloading.spi.ClassLoaderService; import org.hibernate.boot.registry.classloading.spi.ClassLoaderService;
import org.hibernate.boot.registry.classloading.spi.ClassLoadingException;
import org.hibernate.models.spi.ClassLoading; import org.hibernate.models.spi.ClassLoading;
/** /**
@ -27,6 +28,16 @@ public class ClassLoaderServiceLoading implements ClassLoading {
return classLoaderService.classForName( name ); return classLoaderService.classForName( name );
} }
@Override
public <T> Class<T> findClassForName(String name) {
try {
return classLoaderService.classForName( name );
}
catch (ClassLoadingException e) {
return null;
}
}
@Override @Override
public Package packageForName(String name) { public Package packageForName(String name) {
return classLoaderService.packageForNameOrNull( name ); return classLoaderService.packageForNameOrNull( name );

View File

@ -47,6 +47,6 @@ public class OracleArrayIncludesFunction extends AbstractArrayIncludesFunction {
haystackExpression.accept( walker ); haystackExpression.accept( walker );
sqlAppender.append( ")))" ); sqlAppender.append( ")))" );
} }
} }
} }

View File

@ -76,7 +76,7 @@ dependencyResolutionManagement {
def byteBuddyVersion = version "byteBuddy", "1.14.18" def byteBuddyVersion = version "byteBuddy", "1.14.18"
def classmateVersion = version "classmate", "1.5.1" def classmateVersion = version "classmate", "1.5.1"
def geolatteVersion = version "geolatte", "1.9.1" def geolatteVersion = version "geolatte", "1.9.1"
def hibernateModelsVersion = version "hibernateModels", "0.9.0" def hibernateModelsVersion = version "hibernateModels", "0.9.1"
def jandexVersion = version "jandex", "3.2.0" def jandexVersion = version "jandex", "3.2.0"
def jacksonVersion = version "jackson", "2.17.0" def jacksonVersion = version "jackson", "2.17.0"
def jbossLoggingVersion = version "jbossLogging", "3.6.0.Final" def jbossLoggingVersion = version "jbossLogging", "3.6.0.Final"