-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Problems setting hibernate.hbm2dll.auto to "create" for auto
PostPosted: Mon Mar 29, 2010 4:03 pm 
Newbie

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.