-->
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: Force a "Create Database FooBar" Statement
PostPosted: Fri Aug 10, 2007 12:47 pm 
Beginner
Beginner

Joined: Sat Feb 10, 2007 12:18 pm
Posts: 23
I am sorry for creating a new post since I guess this topic has been posted before but the search gave 4000 results :)

I was looking for a "create database" topic. In my application I can switch between several databases and I let Hibernate create and update my tables.
Now I have a problem with mysql: the tables are created as desired but before I have to set an "create database foobar" manually to mysql (with Derby for example all works fine). If I am not doing so I am getting the Exception "Database 'FooBar' not found".

Is there an option in Hibernate to force a create database statement (in case of Derby I guess its done automatically by Derby and not by Hibernate)?


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.