Skip to content

Commit d06696c

Browse files
committed
Try to make Hibernate 7 work
1 parent 4e26581 commit d06696c

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

java/jpa/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ lazy val root = (project in file("."))
1212
guice,
1313
javaJpa,
1414
"com.h2database" % "h2" % "2.2.224",
15-
"org.hibernate" % "hibernate-core" % "7.0.5.Final",
15+
"org.hibernate.orm" % "hibernate-core" % "7.0.5.Final",
1616
javaWs % "test",
1717
"org.awaitility" % "awaitility" % "4.2.2" % "test",
1818
"org.assertj" % "assertj-core" % "3.26.3" % "test",

java/jpa/conf/META-INF/persistence.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<persistence xmlns="https://jakarta.ee/xml/ns/persistence"
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd"
4-
version="3.0">
3+
xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_2.xsd"
4+
version="3.2">
55

66
<persistence-unit name="defaultPersistenceUnit" transaction-type="RESOURCE_LOCAL">
77
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>

java/jpa/gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ twirl = "2.0.9"
33
play = "3.1.0-M2-573139bb-SNAPSHOT"
44
node = "7.1.0"
55
h2 = "2.3.232"
6-
hibernate = "6.6.19.Final"
6+
hibernate = "7.0.5.Final"
77
junit = "4.13.2"
88
assertj = "3.27.3"
99
awaitility = "4.3.0"
@@ -15,7 +15,7 @@ junit = { group = "junit", name = "junit", version.ref = "junit" }
1515
assertj = { group = "org.assertj", name = "assertj-core", version.ref = "assertj" }
1616
awaitility = { group = "org.awaitility", name = "awaitility", version.ref = "awaitility" }
1717
mockito = { group = "org.mockito", name = "mockito-core", version.ref = "mockito" }
18-
hibernate-core = { group = "org.hibernate", name = "hibernate-core", version.ref = "hibernate" }
18+
hibernate-core = { group = "org.hibernate.orm", name = "hibernate-core", version.ref = "hibernate" }
1919

2020
[plugins]
2121
twirl = { id = "org.playframework.twirl", version.ref = "twirl" }

java/rest-api/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ lazy val root = (project in file("."))
1515
guice,
1616
javaJpa,
1717
"com.h2database" % "h2" % "2.2.224",
18-
"org.hibernate" % "hibernate-core" % "7.0.5.Final",
18+
"org.hibernate.orm" % "hibernate-core" % "7.0.5.Final",
1919
"io.dropwizard.metrics" % "metrics-core" % "4.2.25",
2020
"com.palominolabs.http" % "url-builder" % "1.1.5",
2121
"net.jodah" % "failsafe" % "2.4.4",

java/rest-api/conf/META-INF/persistence.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<persistence xmlns="https://jakarta.ee/xml/ns/persistence"
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd"
4-
version="3.0">
3+
xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_2.xsd"
4+
version="3.2">
55

66
<persistence-unit name="defaultPersistenceUnit" transaction-type="RESOURCE_LOCAL">
77
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>

java/rest-api/gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ play = "3.1.0-M2-573139bb-SNAPSHOT"
44
failsafe = "2.4.4"
55
url-builder = "1.1.5"
66
h2 = "2.3.232"
7-
hibernate = "6.6.19.Final"
7+
hibernate = "7.0.5.Final"
88
metrics = "4.2.33"
99
junit = "4.13.2"
1010
scalatestplus-play = "8.0.0-M2"
@@ -13,7 +13,7 @@ scalatestplus-play = "8.0.0-M2"
1313
failsafe = { group = "net.jodah", name = "failsafe", version.ref = "failsafe" }
1414
url-builder = { group = "com.palominolabs.http", name = "url-builder", version.ref = "url-builder" }
1515
h2 = { group = "com.h2database", name = "h2", version.ref = "h2" }
16-
hibernate-core = { group = "org.hibernate", name = "hibernate-core", version.ref = "hibernate" }
16+
hibernate-core = { group = "org.hibernate.orm", name = "hibernate-core", version.ref = "hibernate" }
1717
metrics-core = { group = "io.dropwizard.metrics", name = "metrics-core", version.ref = "metrics" }
1818
junit = { group = "junit", name = "junit", version.ref = "junit" }
1919
scalatestplus-play = { group = "org.scalatestplus.play", name = "scalatestplus-play_2.13", version.ref = "scalatestplus-play" }

0 commit comments

Comments
 (0)