I'm working on a project using maven, hibernate, spring and sqlite3.For the configuration of the connection and hibernate I use the application.yml file which is:
spring:
profile: dev
jpa:
hibernate:
ddl-auto: create-drop
properties:
hibernate:
dialect: org.hibernate.dialect.SQLiteDialect
datasource:url: jdbc:sqlite:C:\Users\user pc\Desktop\database\testrest.db
username: username
password: password
driverClassName: org.sqlite.JDBC
The problem every time I start the application my sqlite database is overwritten (so I lose all my tables) and a new one of the same name is created.
Hoping to have your help, thank you in advance.