From 8b147a7595a7c6a8ed4335fa46277231de7aad46 Mon Sep 17 00:00:00 2001 From: Justin Tay <49700559+justin-tay@users.noreply.github.com> Date: Sat, 7 Dec 2024 09:32:59 +0800 Subject: [PATCH 1/2] Upgrade hibernate from 6.5.2.Final to 6.6.3.Final --- elide-integration-tests/src/test/java/example/Parent.java | 4 +++- .../deployment/src/test/resources/application.properties | 2 ++ elide-quarkus/pom.xml | 2 +- pom.xml | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/elide-integration-tests/src/test/java/example/Parent.java b/elide-integration-tests/src/test/java/example/Parent.java index 8429215d3e..01be1c87af 100644 --- a/elide-integration-tests/src/test/java/example/Parent.java +++ b/elide-integration-tests/src/test/java/example/Parent.java @@ -15,6 +15,7 @@ import com.yahoo.elide.core.security.RequestScope; import com.yahoo.elide.core.security.checks.OperationCheck; +import jakarta.persistence.CascadeType; import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.JoinColumn; @@ -53,7 +54,8 @@ public void doInit() { @UpdatePermission(expression = "Prefab.Role.All OR Prefab.Role.None") // Hibernate @ManyToMany( - targetEntity = Child.class + targetEntity = Child.class, + cascade = CascadeType.ALL ) @JoinTable( name = "Parent_Child", diff --git a/elide-quarkus/deployment/src/test/resources/application.properties b/elide-quarkus/deployment/src/test/resources/application.properties index ce1ae5149c..6cf0b020af 100644 --- a/elide-quarkus/deployment/src/test/resources/application.properties +++ b/elide-quarkus/deployment/src/test/resources/application.properties @@ -8,3 +8,5 @@ elide.base-graphql=/test-graphql elide.base-swagger=/test-apiDocs quarkus.log.level=INFO quarkus.log.category."com.yahoo.elide".level=DEBUG +quarkus.index-dependency.jooq.group-id=com.yahoo.elide +quarkus.index-dependency.jooq.artifact-id=elide-swagger diff --git a/elide-quarkus/pom.xml b/elide-quarkus/pom.xml index 2c5f69fdbd..aed38ddb1c 100644 --- a/elide-quarkus/pom.xml +++ b/elide-quarkus/pom.xml @@ -49,7 +49,7 @@ 11 UTF-8 UTF-8 - 3.13.1 + 3.17.3 7.1.5-SNAPSHOT 3.2.5 ${project.basedir}/../.. diff --git a/pom.xml b/pom.xml index e24c3585a1..f128c74101 100644 --- a/pom.xml +++ b/pom.xml @@ -100,7 +100,7 @@ 24.0.1 33.2.0-jre 4.4.0 - 6.5.2.Final + 6.6.3.Final 8.0.1.Final 6.2.4.Final 3.1.0 From 6023e1c4254e19d00d4ef39533afea901bcb0946 Mon Sep 17 00:00:00 2001 From: Justin Tay <49700559+justin-tay@users.noreply.github.com> Date: Mon, 16 Dec 2024 22:33:27 +0800 Subject: [PATCH 2/2] Set legacyConfigRoot=true --- elide-quarkus/deployment/pom.xml | 3 +++ elide-quarkus/runtime/pom.xml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/elide-quarkus/deployment/pom.xml b/elide-quarkus/deployment/pom.xml index 92c3e8de3f..2b735e89f1 100644 --- a/elide-quarkus/deployment/pom.xml +++ b/elide-quarkus/deployment/pom.xml @@ -100,6 +100,9 @@ ${quarkus.version} + + -AlegacyConfigRoot=true + diff --git a/elide-quarkus/runtime/pom.xml b/elide-quarkus/runtime/pom.xml index 37a7d15d59..27111f352a 100644 --- a/elide-quarkus/runtime/pom.xml +++ b/elide-quarkus/runtime/pom.xml @@ -108,6 +108,9 @@ ${quarkus.version} + + -AlegacyConfigRoot=true +