feat: DB adjustments + connection profile (#5)

* Use persistent database and add datasource

* Change DLL-behaviour for test

* Fix linebreak
This commit is contained in:
Torge Hamann 2024-11-17 20:57:39 +01:00 committed by GitHub
parent 4d04fc64aa
commit c3da0eff5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 30 additions and 10 deletions

View file

@ -0,0 +1,2 @@
#TODO: Use flyway for db setup
hibernate.hbm2ddl.auto=create-drop

View file

@ -2,12 +2,12 @@
spring.application.name=home-cert-assistant
# Database
driverClassName=org.sqlite.JDBC
url=jdbc:sqlite:sqlLiteDb:database?cache=shared
url=jdbc:sqlite:sqLiteDb.db
username=admin
password=admin
spring.jpa.database-platform=org.hibernate.community.dialect.SQLiteDialect
#TODO: Use flyway for db setup
hibernate.hbm2ddl.auto=create-drop
hibernate.hbm2ddl.auto=update
hibernate.show_sql=true
# Logging