-->
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: Get list of all mappings / drop all NHibernate tables
PostPosted: Tue Jun 16, 2009 5:05 am 
Newbie

Joined: Wed Aug 13, 2008 2:48 am
Posts: 4
Is it possible to either get a list of all mapped tables - or simply call a method to drop all mapped tables?

I am looking for a way to rebuild my database from scratch without dropping the whole database (since it contains tables that NHibernate is not aware of).

Thanks, Jørn


Top
 Profile  
 
 Post subject: Re: Get list of all mappings / drop all NHibernate tables
PostPosted: Wed Jun 17, 2009 7:29 am 
Hi

There is a property in hibernate.cfg.xml called hibernate.hbm2ddl.auto.
Setting this porperty to true, all your mapping table will be drop and then re-created.

[]s


Top
  
 
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.