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.  [ 3 posts ] 
Author Message
 Post subject: Hibernate create the database tables and automatico
PostPosted: Tue Jan 13, 2009 11:10 am 
Newbie

Joined: Tue Jan 13, 2009 11:04 am
Posts: 13
Hello,

Hibernate with the bank would like to create and automatically generate the tables.
You can do this if so could someone give me an example.

Would if someone can help me ...

Thank you.

Paulo
Sao Paulo - Brazil


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2009 12:08 pm 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
In your hibernate.properties file you can for example set
Code:
hibernate.hbm2ddl.auto = create


For more information see http://www.hibernate.org/hib_docs/v3/re ... ional.html (scroll down until you find the entry for hibernate.hbm2ddl.auto)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 13, 2009 12:48 pm 
Newbie

Joined: Tue Jan 13, 2009 11:04 am
Posts: 13
Thanks for returns.

I am using JPA with Hibernate is to do this?

If you have any example or url with example?

Thank you if you can help me?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.