Nov 2nd, 2009, 10:12 AM
Hibernate Newbie: Current data getting deleted
Complete hibernate newbie here. I've set up a small web app using hibernate, spring etc. This is all up and running and I can't see any issues apart from one (there always is eh)
When I first start the application (Tomcat 5.5) the current data that I have on the database table gets deleted ?? I don't want this happening but I can't find anything that tells me this is correct behavior or how to stop it ?
Any ideas ?
Nov 2nd, 2009, 11:58 AM
Change your hibernate configuration. My guess is that you have enabled that the tables need to be (re)created on application startup.
Nov 2nd, 2009, 12:14 PM
Yep that was it thanks very much...