Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Databases / September 2005

Tip: Looking for answers? Try searching our database.

creating mysql schema in java code

Thread view: 
cleveridea@gmail.com - 16 Sep 2005 16:50 GMT
We have developed an application in java running on jboss that uses
mysql as the database with hibernate persistence. Hibernate
automatically creates all the associated mysql tables, but at present
we have to create a schema manually using mysql's admin GUI on a new
machine. We want to make deployment of the application (built into a
single .war file) as automated as possible.

Is there a way to create the initial 'schema' (CREATE DATABASE) using
java code rather than manually? E.g. through the hibernate or JDBC
libraries.
John Currier - 19 Sep 2005 14:26 GMT
> We have developed an application in java running on jboss that uses
> mysql as the database with hibernate persistence. Hibernate
[quoted text clipped - 6 lines]
> java code rather than manually? E.g. through the hibernate or JDBC
> libraries.

Google for hbm2ddl.auto.

John
http://schemaspy.sourceforge.net
Alfred - 27 Sep 2005 16:23 GMT
> ...
> Is there a way to create the initial 'schema' (CREATE DATABASE) using
> java code rather than manually? E.g. through the hibernate or JDBC
> libraries.

Ask the MySQL Guide.

Good luck


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.