This is an automated email from the ASF dual-hosted git repository.
ljmotta pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/main by this push:
new 658c6dfa307 [NO-ISSUE] Disable hibernate schema generation in quarkus
apps (#3140)
658c6dfa307 is described below
commit 658c6dfa307919214aad44e929006a708a31df20
Author: Pere Fernández <[email protected]>
AuthorDate: Thu May 15 16:39:29 2025 +0200
[NO-ISSUE] Disable hibernate schema generation in quarkus apps (#3140)
---
.../src/main/resources/application.properties | 3 +++
.../src/main/resources/application.properties | 4 ++++
.../kie-service-1/src/main/resources/application.properties | 4 ++++
.../kie-service-2/src/main/resources/application.properties | 4 ++++
.../kie-service-3/src/main/resources/application.properties | 4 ++++
examples/process-user-tasks-subsystem/pom.xml | 13 +++++++++++++
.../src/main/resources/application.properties | 4 ++++
.../src/main/resources/application.properties | 4 ++++
8 files changed, 40 insertions(+)
diff --git
a/examples/process-accelerator/src/main/resources/application.properties
b/examples/process-accelerator/src/main/resources/application.properties
index 1924c7ff966..1b652410fd7 100644
--- a/examples/process-accelerator/src/main/resources/application.properties
+++ b/examples/process-accelerator/src/main/resources/application.properties
@@ -53,6 +53,9 @@
quarkus.datasource.password=${QUARKUS_DATASOURCE_PASSWORD:kogito-pass}
quarkus.datasource.jdbc.url=${QUARKUS_DATASOURCE_JDBC_URL:jdbc:postgresql://localhost:5432/kogito}
quarkus.datasource.reactive.url=${QUARKUS_DATASOURCE_REACTIVE_URL:postgresql://localhost:5432/kogito}
+# Disabling Hibernate schema generation
+quarkus.hibernate-orm.database.generation=none
+quarkus.hibernate-orm.validate-in-dev-mode=false
#####################################
diff --git
a/examples/process-compact-architecture/src/main/resources/application.properties
b/examples/process-compact-architecture/src/main/resources/application.properties
index 983874db514..0a73b1b1434 100644
---
a/examples/process-compact-architecture/src/main/resources/application.properties
+++
b/examples/process-compact-architecture/src/main/resources/application.properties
@@ -43,6 +43,10 @@
quarkus.datasource.reactive.url=${QUARKUS_DATASOURCE_REACTIVE_URL:postgresql://0
%dev.quarkus.datasource.username=kie
%dev.quarkus.datasource.jdbc.url=jdbc:h2:mem:default;NON_KEYWORDS=VALUE,KEY
+# Disabling Hibernate schema generation
+quarkus.hibernate-orm.database.generation=none
+quarkus.hibernate-orm.validate-in-dev-mode=false
+
############
# Security #
############
diff --git
a/examples/process-security/kie-service-1/src/main/resources/application.properties
b/examples/process-security/kie-service-1/src/main/resources/application.properties
index 15e58241e0e..a550a644af3 100644
---
a/examples/process-security/kie-service-1/src/main/resources/application.properties
+++
b/examples/process-security/kie-service-1/src/main/resources/application.properties
@@ -47,6 +47,10 @@
quarkus.datasource.reactive.url=${QUARKUS_DATASOURCE_REACTIVE_URL:postgresql://l
%dev.quarkus.datasource.username=kie1
%dev.quarkus.datasource.jdbc.url=jdbc:h2:mem:default;NON_KEYWORDS=VALUE,KEY
+# Disabling Hibernate schema generation
+quarkus.hibernate-orm.database.generation=none
+quarkus.hibernate-orm.validate-in-dev-mode=false
+
# profile to pack this example into a container, to use it execute activate
the maven container profile, -Pcontainer
%container.quarkus.container-image.build=true
%container.quarkus.container-image.push=false
diff --git
a/examples/process-security/kie-service-2/src/main/resources/application.properties
b/examples/process-security/kie-service-2/src/main/resources/application.properties
index 18e444b56cb..5379bc9f751 100644
---
a/examples/process-security/kie-service-2/src/main/resources/application.properties
+++
b/examples/process-security/kie-service-2/src/main/resources/application.properties
@@ -47,6 +47,10 @@
quarkus.datasource.reactive.url=${QUARKUS_DATASOURCE_REACTIVE_URL:postgresql://l
%dev.quarkus.datasource.username=kie2
%dev.quarkus.datasource.jdbc.url=jdbc:h2:mem:default;NON_KEYWORDS=VALUE,KEY
+# Disabling Hibernate schema generation
+quarkus.hibernate-orm.database.generation=none
+quarkus.hibernate-orm.validate-in-dev-mode=false
+
# profile to pack this example into a container, to use it execute activate
the maven container profile, -Pcontainer
%container.quarkus.container-image.build=true
%container.quarkus.container-image.push=false
diff --git
a/examples/process-security/kie-service-3/src/main/resources/application.properties
b/examples/process-security/kie-service-3/src/main/resources/application.properties
index b6d272c55c8..33466d7e24a 100644
---
a/examples/process-security/kie-service-3/src/main/resources/application.properties
+++
b/examples/process-security/kie-service-3/src/main/resources/application.properties
@@ -47,6 +47,10 @@
quarkus.datasource.reactive.url=${QUARKUS_DATASOURCE_REACTIVE_URL:postgresql://l
%dev.quarkus.datasource.username=kie3
%dev.quarkus.datasource.jdbc.url=jdbc:h2:mem:default;NON_KEYWORDS=VALUE,KEY
+# Disabling Hibernate schema generation
+quarkus.hibernate-orm.database.generation=none
+quarkus.hibernate-orm.validate-in-dev-mode=false
+
# profile to pack this example into a container, to use it execute activate
the maven container profile, -Pcontainer
%container.quarkus.container-image.build=true
%container.quarkus.container-image.push=false
diff --git a/examples/process-user-tasks-subsystem/pom.xml
b/examples/process-user-tasks-subsystem/pom.xml
index 77d82ade408..336991a6df9 100644
--- a/examples/process-user-tasks-subsystem/pom.xml
+++ b/examples/process-user-tasks-subsystem/pom.xml
@@ -113,6 +113,10 @@
<groupId>org.kie</groupId>
<artifactId>kie-addons-quarkus-persistence-jdbc</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.jbpm</groupId>
+ <artifactId>jbpm-addons-quarkus-usertask-storage-jpa</artifactId>
+ </dependency>
<!-- Data-Index Addon -->
<dependency>
@@ -168,6 +172,15 @@
<artifactId>quarkus-jdbc-h2</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.kie</groupId>
+ <artifactId>kie-addons-quarkus-persistence-jdbc</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jbpm</groupId>
+ <artifactId>jbpm-addons-quarkus-usertask-storage-jpa</artifactId>
+ </dependency>
+
<!-- Data-Index Addon -->
<dependency>
<groupId>org.kie</groupId>
diff --git
a/examples/process-user-tasks-subsystem/src/main/resources/application.properties
b/examples/process-user-tasks-subsystem/src/main/resources/application.properties
index 4ac2b05f001..27a91b8f275 100644
---
a/examples/process-user-tasks-subsystem/src/main/resources/application.properties
+++
b/examples/process-user-tasks-subsystem/src/main/resources/application.properties
@@ -52,6 +52,10 @@
%dev.quarkus.datasource.username=kie
%dev.quarkus.datasource.jdbc.url=jdbc:h2:mem:default;NON_KEYWORDS=VALUE,KEY
+# Disabling Hibernate schema generation
+quarkus.hibernate-orm.database.generation=none
+quarkus.hibernate-orm.validate-in-dev-mode=false
+
############
# Security #
############
diff --git
a/packages/dev-deployment-quarkus-blank-app/src/main/resources/application.properties
b/packages/dev-deployment-quarkus-blank-app/src/main/resources/application.properties
index 7a99958e37f..15ebfbe14f5 100644
---
a/packages/dev-deployment-quarkus-blank-app/src/main/resources/application.properties
+++
b/packages/dev-deployment-quarkus-blank-app/src/main/resources/application.properties
@@ -60,6 +60,10 @@ quarkus.datasource.db-kind=h2
quarkus.datasource.username=kie
quarkus.datasource.jdbc.url=jdbc:h2:mem:default;NON_KEYWORDS=VALUE,KEY
+# Disabling Hibernate schema generation
+quarkus.hibernate-orm.database.generation=none
+quarkus.hibernate-orm.validate-in-dev-mode=false
+
############
# Security #
############
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]