-->
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.  [ 2 posts ] 
Author Message
 Post subject: Dynamic Database creation using hibernate
PostPosted: Thu Mar 29, 2007 6:31 am 
Beginner
Beginner

Joined: Tue Dec 12, 2006 7:52 am
Posts: 20
hi
when ever the hibernate.cfg.xml file is loaded at that time i want create the database in the database how can i configure that configuration in that hibernate.cfg.xml file please any one can help me


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 29, 2007 6:49 am 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
http://www.hibernate.org/hib_docs/v3/re ... figuration

Quote:
<!-- Drop and re-create the database schema on startup -->
<property name="hbm2ddl.auto">create</property>

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


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

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.