-->
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.  [ 1 post ] 
Author Message
 Post subject: SchemaExport always drop the tables.
PostPosted: Thu Aug 19, 2004 10:38 am 
Newbie

Joined: Wed Aug 11, 2004 11:12 am
Posts: 10
Location: Brazil
Hi There

Using new SchemaExport(cfg).create(true,false) (according the doc), the hibernate drop my table and create again. What I want is if the table exists so the hibernate verify the fields and update them (same SchemaUpdate), if not exist the table then create it.

Is it possible to do it when the DAO is initialized? (ps: my DAO is initialized when the Tomcat is started).

thanks


Hibernate version: Hibernate 2.1.4

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:

Debug level Hibernate log excerpt:


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.