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?
Asked
Active
Viewed 3,824 times
4
-
You should post a bit more information to get meaningful help on this. – Eduardo Mar 08 '12 at 21:46
1 Answers
12
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
.
See also

Community
- 1
- 1

Tomasz Nurkiewicz
- 334,321
- 69
- 703
- 674