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

main
KKlochko 1 year ago
parent aac696ded4
commit 05b992f007

@ -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>

Loading…
Cancel
Save