Skip to content

Commit 5cad8a1

Browse files
committed
HHH-19456 - Upgrade to hibernate-models 1.0.0.CR3
1 parent 9870646 commit 5cad8a1

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

hibernate-core/src/test/java/org/hibernate/orm/test/annotations/xml/ejb3/Ejb3XmlTestCase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ protected ClassDetails getClassDetails(Class<?> entityClass, String xmlResourceN
9191

9292
final ModelsContext modelBuildingContext = new BasicModelsContextImpl(
9393
SIMPLE_CLASS_LOADING,
94+
false,
9495
(contributions, inFlightContext) -> {
9596
OrmAnnotationHelper.forEachOrmAnnotation( contributions::registerAnnotation );
9697
}

hibernate-core/src/test/java/org/hibernate/orm/test/boot/models/SourceModelTestHelper.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,14 @@ public static ModelsContext createBuildingContext(
9090
if ( jandexIndex == null ) {
9191
ctx = new BasicModelsContextImpl(
9292
classLoadingAccess,
93+
false,
9394
(contributions, buildingContext1) -> forEachOrmAnnotation( contributions::registerAnnotation )
9495
);
9596
}
9697
else {
9798
ctx = new JandexModelsContextImpl(
9899
jandexIndex,
100+
false,
99101
classLoadingAccess,
100102
(contributions, buildingContext1) -> forEachOrmAnnotation( contributions::registerAnnotation )
101103
);
@@ -306,8 +308,8 @@ public static ModelsContext createBuildingContext(
306308
private static ModelsContext createModelsContext(
307309
IndexView jandexIndex, ClassLoaderServiceLoading classLoading) {
308310
return jandexIndex == null
309-
? new BasicModelsContextImpl( classLoading, ModelsHelper::preFillRegistries )
310-
: new JandexModelsContextImpl( jandexIndex, classLoading, ModelsHelper::preFillRegistries );
311+
? new BasicModelsContextImpl( classLoading, false, ModelsHelper::preFillRegistries )
312+
: new JandexModelsContextImpl( jandexIndex, false, classLoading, ModelsHelper::preFillRegistries );
311313
}
312314

313315
private static void collectHbmClasses(JaxbHbmHibernateMapping hbmRoot, Consumer<String> classNameConsumer) {

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ dependencyResolutionManagement {
7676
def byteBuddyVersion = version "byteBuddy", "1.15.11"
7777
def classmateVersion = version "classmate", "1.7.0"
7878
def geolatteVersion = version "geolatte", "1.9.1"
79-
def hibernateModelsVersion = version "hibernateModels", "1.0.0.CR1"
79+
def hibernateModelsVersion = version "hibernateModels", "1.0.0.CR3"
8080
def jandexVersion = version "jandex", "3.3.0"
8181
def jacksonVersion = version "jackson", "2.18.2"
8282
def jbossLoggingVersion = version "jbossLogging", "3.6.1.Final"

0 commit comments

Comments
 (0)