I am building a spring MVC web application. I am using Hibernate as my ORM. Whenever I restart my tomcat 7 server, it automatically deletes the table created previously. How to prevent this?
Search for hbm2ddl
text somewhere in your configuration, close to Hibernate configuration properties. It should be set to update
or none
, apparently you have create-drop
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With