Skip to content

Commit

Permalink
fix configuration. simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
elguardian committed Nov 15, 2023
1 parent 7c3e46b commit 8a9d2f8
Show file tree
Hide file tree
Showing 15 changed files with 919 additions and 1,002 deletions.
17 changes: 1 addition & 16 deletions data-audit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,5 @@ Each implementation might require additional dependencies. In our case for using
<artifactId>quarkus-jdbc-h2</artifactId>
</dependency>

for the case of use h2 database with quarkus runtime. plus additional parameters. In our case for make in work in quarkus you need to define
the data audit persistence
No additional configuration is requires besides the default datasource use by the application already.


quarkus.datasource.data-audit-ds.db-kind=posgres
quarkus.datasource.data-audit-ds.username=kogito-user
quarkus.datasource.data-audit-ds.password=kogito-pass
quarkus.datasource.data-audit-ds.jdbc.url=${QUARKUS_DATASOURCE_JDBC_URL:jdbc:postgresql://localhost:5432/kogito}

In springboot might look like:

spring.datasource.jdbc-url=jdbc:h2:mem:test
spring.datasource.driver-class-name=org.h2.Driver

data-audit.spring.jpa.database=H2
data-audit.spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect
data-audit.spring.jpa.properties.hibernate.hbm2ddl.auto=create-drop
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#default values

quarkus.datasource.data-audit.db-kind=${QUARKUS_DATASOURCE_DB:h2}
quarkus.datasource.data-audit.username=${QUARKUS_DATASOURCE_USER:kogito-user}
quarkus.datasource.data-audit.password=${QUARKUS_DATASOURCE_PASS:kogito-pass}
quarkus.datasource.data-audit.jdbc.url=${QUARKUS_DATASOURCE_JDBC_URL:jdbc:h2:mem:data-audit}
quarkus.datasource.db-kind=${QUARKUS_DATASOURCE_DB:h2}
quarkus.datasource.username=${QUARKUS_DATASOURCE_USER:kogito-user}
quarkus.datasource.password=${QUARKUS_DATASOURCE_PASS:kogito-pass}
quarkus.datasource.jdbc.url=${QUARKUS_DATASOURCE_JDBC_URL:jdbc:h2:mem:data-audit}

quarkus.hibernate-orm.DataAuditPU.database.generation=update
quarkus.hibernate-orm.database.generation=update

quarkus.container-image.build=${quarkus.build.image:true}
quarkus.container-image.group=org.kie.kogito
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 8a9d2f8

Please sign in to comment.