-->
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 check if tables and columns exist
PostPosted: Mon Nov 27, 2006 2:36 am 
Senior
Senior

Joined: Sat Jul 17, 2004 5:16 pm
Posts: 143
I thought I saw something about a feature where it checks the DB to see if the columns and tables exist that are referenced from the mapping documents. How can I utilize this feature (if it exists)?

Thanks,
Chris


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 27, 2006 2:55 pm 
Senior
Senior

Joined: Mon Oct 23, 2006 5:12 am
Posts: 141
Location: Galicia, Spain
http://www.hibernate.org/hib_docs/v3/re ... etguide-s1

Maybe what you want is:

<property name="hbm2ddl.auto">update</property>

in hibernate.cfg.xml

_________________
andresgr (--don't forget to rate)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 27, 2006 3:16 pm 
Newbie

Joined: Mon Jan 05, 2004 11:04 am
Posts: 16
Hi,

if you only want to validate try better this

<property name="hbm2ddl.auto">validate</property>

_________________
_________________
Siegbert

Please don't forget to give credit if/when you get helpful information.


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.