Update the hibernate config to create the tables if not exist.
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

main
KKlochko 1 year ago
parent aac696ded4
commit 05b992f007

@ -21,7 +21,9 @@
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" /> <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
<!-- Auto create the tables of the entities if they are not exist --> <!-- 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> </properties>
</persistence-unit> </persistence-unit>
@ -42,7 +44,9 @@
<property name="jakarta.persistence.jdbc.password" value="testpassword" /> <property name="jakarta.persistence.jdbc.password" value="testpassword" />
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" /> <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect" />
<!-- Auto create the tables of the entities if they are not exist --> <!-- 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> </properties>
</persistence-unit> </persistence-unit>
</persistence> </persistence>

Loading…
Cancel
Save