Update the hibernate config to create the tables if not exist.

This commit is contained in:
2023-11-14 15:26:56 +02:00
parent aac696ded4
commit 05b992f007
+6 -2
View File
@@ -21,7 +21,9 @@
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
<!-- Auto create the tables of the entities if they are not exist -->
<property name="hibernate.hbm2ddl.auto" value="create" />
<property name="hibernate.hbm2ddl.auto" value="update" />
<!-- <property name="hibernate.show_sql" value="true"/>-->
</properties>
</persistence-unit>
@@ -42,7 +44,9 @@
<property name="jakarta.persistence.jdbc.password" value="testpassword" />
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
<!-- Auto create the tables of the entities if they are not exist -->
<property name="hibernate.hbm2ddl.auto" value="create" />
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.show_sql" value="true"/>
</properties>
</persistence-unit>
</persistence>