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: How to let Hibernate AUTO-CREATE Table if it not exists?
PostPosted: Tue Nov 04, 2008 1:11 pm 
Beginner
Beginner

Joined: Wed Oct 08, 2008 10:59 am
Posts: 37
When I save in my Hibernate-based java app an object then it is
successfully stored in the existing Table in a MySQL Database.

However when I do a DROP TABLE and re-run the same program again
then I got an error.

How can I let Hibernate create AUTOMATICALLY create all necessary TABLEs if they NOT exist?

Peter


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 04, 2008 2:30 pm 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
http://www.hibernate.org/hib_docs/v3/re ... etguide-s1


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.