Postby alexhutnik » Mon Sep 03, 2012 9:09 pm
First, my setup:
1. BLC 2.0 M1-6
2. Eclipse workspace (Heat Clinic)
3. Setup a Tomcat server locally (Just downloaded Tomcat, untar'd, set up as server in Eclipse)
4. Switched to MySQL successfully.
When I start up Tomcat, Hibernate seems to recreate the schema entirely from scratch, as if drop-create is set somewhere. No matter what I try I can't prevent Hibernate from recreating the database. This poses two problems: any new changes to my dev data are wiped out, and second it adds a couple minutes to app startup. I tried setting the ddl.auto settings in common-shared.properties to none/null/update, and nothing worked. Am I supposed to do a mvn install to pick those up since the site project depends on core?
Also, when I shut down hibernate, the same schema export happens again, as if it's somehow hooked into the bean lifecycle shutdown hook.