MySQL table is automatically dropped when Tomcat Server restarts
I am creating a spring MVC web application. I am using Hibernate as my ORM. Whenever I restart my tomcat 7 server, it automatically deletes the table I created earlier. How can this be prevented?
+3
Kaushik Balasubramanain
source
to share
1 answer
Find the text hbm2ddl
somewhere in your config, next to the Hibernate config settings. It should be installed on, update
or none
apparently you have create-drop
.
see also
- Hibernate hbm2ddl.auto possible values and what do they do?
+11
Tomasz Nurkiewicz
source
to share