Skip to content
Snippets Groups Projects

Change hibernate property hgm2ddl.auto to update schema instead of dropping and creating every time

Merged Eirik Steira requested to merge update-tables-on-startup into dev
2 files
+ 2
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -31,8 +31,8 @@
<property name="hibernate.format_sql" value="true"/>
<property name="hibernate.use_sql_comments" value="true"/>
<!-- Drop and create tables on startup -->
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
<!-- Update tables on startup -->
<property name="hibernate.hbm2ddl.auto" value="update" />
</properties>
</persistence-unit>
</persistence>
\ No newline at end of file
Loading