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:
|