Question

I'm new here and just starting to use Spring Roo.

I have a problem with Roo and Mysql, when the application starts, it delete all the database from Mysql. I know that for many people the solution was to put update or other "value on hibernate.hbm2ddl.auto" but I tried it and it continues doing the same, when I deploy or redeploy the app, it delete all the data in database, independently of changing "value"(and updating).

I want to "update" the database but don't know other options to solve this. if anyone could help me I would appreciate.

Thanks

(Im using Eclipse Indigo, xampp(apache,mysql,tomcat))

Thanks (If I stop/start it in the tomcat manager, it also erase the database..)

Was it helpful?

Solution

The value of hibernate.hbm2ddl.auto should be none. If you are using maven then do a clean and package and then run tomcat (mvn tomcat:run). The issue is most likely because tomcat is picking up an older version of war.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top