Update the hibernate config to create the tables if not exist.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user