Skip to content

Commit 09ba8d6

Browse files
committed
Upgrade to Hibernate 7.0 Beta3.
Also, upgrade to Antlr 4.13.2 and extend XML metadata due to changes in how Hibernate now handles model metadata. Closes #3723
1 parent 23d2e9a commit 09ba8d6

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
</parent>
2828

2929
<properties>
30-
<antlr>4.13.0</antlr> <!-- align with Hibernate's parser -->
30+
<antlr>4.13.2</antlr> <!-- align with Hibernate's parser -->
3131
<eclipselink>5.0.0-B05</eclipselink>
3232
<eclipselink-next>5.0.0-SNAPSHOT</eclipselink-next>
33-
<hibernate>7.0.0.Beta1</hibernate>
33+
<hibernate>7.0.0.Beta3</hibernate>
3434
<hibernate-70-snapshots>7.0.0-SNAPSHOT</hibernate-70-snapshots>
3535
<hsqldb>2.7.4</hsqldb>
3636
<h2>2.3.232</h2>

spring-data-jpa/src/test/resources/META-INF/persistence.xml

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_2.xsd"
55
version="3.2">
66
<persistence-unit name="spring-data-jpa">
7+
<mapping-file>META-INF/orm.xml</mapping-file>
78
<class>org.springframework.data.jpa.domain.AbstractPersistable</class>
89
<class>org.springframework.data.jpa.domain.AbstractAuditable</class>
910
<class>org.springframework.data.jpa.domain.sample.AbstractAnnotatedAuditable</class>
@@ -69,6 +70,7 @@
6970
<class>org.springframework.data.jpa.domain.sample.MailMessage</class>
7071
<class>org.springframework.data.jpa.domain.sample.MailSender</class>
7172
<class>org.springframework.data.jpa.domain.sample.MailUser</class>
73+
<class>org.springframework.data.jpa.domain.sample.Role</class>
7274
<class>org.springframework.data.jpa.domain.sample.User</class>
7375
<class>org.springframework.data.jpa.domain.sample.Dummy</class>
7476
<exclude-unlisted-classes>true</exclude-unlisted-classes>
@@ -78,6 +80,7 @@
7880
<class>org.springframework.data.jpa.domain.sample.MailMessage</class>
7981
<class>org.springframework.data.jpa.domain.sample.MailSender</class>
8082
<class>org.springframework.data.jpa.domain.sample.MailUser</class>
83+
<class>org.springframework.data.jpa.domain.sample.Role</class>
8184
<class>org.springframework.data.jpa.domain.sample.User</class>
8285
<class>org.springframework.data.jpa.repository.cdi.Person</class>
8386
<class>org.springframework.data.jpa.domain.sample.Dummy</class>
@@ -95,6 +98,7 @@
9598
<!-- DATAJPA-476 -->
9699
<persistence-unit name="merchant">
97100
<class>org.springframework.data.jpa.domain.sample.User</class>
101+
<class>org.springframework.data.jpa.domain.sample.Role</class>
98102
<class>org.springframework.data.jpa.repository.query.QueryUtilsIntegrationTests$Merchant</class>
99103
<class>org.springframework.data.jpa.repository.query.QueryUtilsIntegrationTests$Address</class>
100104
<class>org.springframework.data.jpa.repository.query.QueryUtilsIntegrationTests$Employee</class>
@@ -122,6 +126,7 @@
122126
<class>org.springframework.data.jpa.domain.sample.MailSender</class>
123127
<class>org.springframework.data.jpa.domain.sample.MailUser</class>
124128
<class>org.springframework.data.jpa.domain.sample.User</class>
129+
<class>org.springframework.data.jpa.domain.sample.Role</class>
125130
<class>org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformationIntegrationTests$Sample</class>
126131
<class>org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformationIntegrationTests$EntityWithNestedIdClass</class>
127132
<class>org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformationIntegrationTests$EntityWithIdClass</class>
@@ -140,6 +145,7 @@
140145
<class>org.springframework.data.jpa.domain.sample.MailSender</class>
141146
<class>org.springframework.data.jpa.domain.sample.MailUser</class>
142147
<class>org.springframework.data.jpa.domain.sample.User</class>
148+
<class>org.springframework.data.jpa.domain.sample.Role</class>
143149
<class>org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformationIntegrationTests$Sample</class>
144150
<class>org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformationIntegrationTests$EntityWithNestedIdClass</class>
145151
<class>org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformationIntegrationTests$EntityWithIdClass</class>
@@ -164,6 +170,7 @@
164170
<class>org.springframework.data.jpa.domain.sample.MailSender</class>
165171
<class>org.springframework.data.jpa.domain.sample.MailUser</class>
166172
<class>org.springframework.data.jpa.domain.sample.User</class>
173+
<class>org.springframework.data.jpa.domain.sample.Role</class>
167174
<class>org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformationIntegrationTests$Sample</class>
168175
<class>org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformationIntegrationTests$EntityWithNestedIdClass</class>
169176
<class>org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformationIntegrationTests$EntityWithIdClass</class>
@@ -181,6 +188,7 @@
181188
<class>org.springframework.data.jpa.domain.sample.MailMessage</class>
182189
<class>org.springframework.data.jpa.domain.sample.MailSender</class>
183190
<class>org.springframework.data.jpa.domain.sample.MailUser</class>
191+
<class>org.springframework.data.jpa.domain.sample.Role</class>
184192
<class>org.springframework.data.jpa.domain.sample.User</class>
185193
<class>org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformationIntegrationTests$Sample</class>
186194
<class>org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformationIntegrationTests$EntityWithNestedIdClass</class>

0 commit comments

Comments
 (0)