Joined: Sat Mar 28, 2009 12:44 pm Posts: 6 Location: England
|
I have a hibernate project with a persistence.xml file containing two persistence-unit's. One is for an automated test framework (test-manager) and the other is for a web app (web-manager).
Within test-manager I set <property name="hibernate.hbm2ddl.auto" value="create"/>
However when I run the web application the database is dropped and recreated even though this property is only set to "validate" within web-manager. web-manager is the only persistence-unit accessed by the web application.
My only solution to date, is to comment out test-manager when running the web-app. Can anyone suggest a neater solution.
Many Thanks,
Steve
_________________ Steve
|
|