-->
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: How to generate Database tables using HBM files--urgent
PostPosted: Mon Oct 11, 2010 3:17 am 
Newbie

Joined: Mon Oct 11, 2010 3:13 am
Posts: 1
Hi

Can you plz help me find a way to generate Database tables using the hbm files.


Top
 Profile  
 
 Post subject: Re: How to generate Database tables using HBM files--urgent
PostPosted: Mon Oct 11, 2010 6:15 am 
Regular
Regular

Joined: Wed Jun 20, 2007 1:53 am
Posts: 75
You can use below property in hibernate config file, and note that it will recreate the database tables whenever sessionfactory get initialised. So once all tables are created then remove this proprty from config file before re-start your application next time.


<prop key="hibernate.hbm2ddl.auto">create</prop>


Top
 Profile  
 
 Post subject: Re: How to generate Database tables using HBM files--urgent
PostPosted: Thu Oct 14, 2010 3:31 pm 
Newbie

Joined: Thu Oct 14, 2010 3:08 pm
Posts: 4
Hi,
What is the tool you are using to run your application, If that is eclipse, then you will get a hibernate syncroniser tool as add in. Just add it and it is so easy to genetate hbm files.

_________________
Regards,
BM


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.