eu-digital-green-certificates / dgca-businessrule-service

Apache License 2.0
7 stars 24 forks source link

Do not delete all entities on restart #39

Closed psavva closed 3 years ago

psavva commented 3 years ago

As per https://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#configurations-hbmddl

hibernate.hbm2ddl.auto (e.g. none (default value), create-only, drop, create, create-drop, validate, and update) Setting to perform SchemaManagementTool actions automatically as part of the SessionFactory lifecycle. Valid options are defined by the externalHbm2ddlName value of the Action enum:

none No action will be performed.

create-only Database creation will be generated.

drop Database dropping will be generated.

create Database dropping will be generated followed by database creation.

create-drop Drop the schema and recreate it on SessionFactory startup. Additionally, drop the schema on SessionFactory shutdown.

validate Validate the database schema

update Update the database schema

psavva commented 3 years ago

https://github.com/eu-digital-green-certificates/dgca-businessrule-service/pull/35