-->
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: Legacy Tables vs hibernate.hbm2ddl.auto create
PostPosted: Mon May 09, 2005 1:53 am 
Newbie

Joined: Mon Feb 07, 2005 5:03 am
Posts: 1
Hibernate version: Hibernate3

Hi,

I use for development the following entry in my hibernate-configuration:

Code:
<hibernate-configuration>
<session-factory>
...
   <property name="hibernate.hbm2ddl.auto">create</property>   

   <!-- Mapping files. -->
   <mapping resource="model/dao/Account.hbm.xml"/>
   <mapping source="model/dao/AccountValidationRecord.hbm.xml"/>
...


I find it extremely convenient for my development since it creates my table each time I execute my program. My problem is that I need to merge my program with some quite huge legacy tables which I do not want to recreate. Is there a way that I could use that hibernate.hbm2ddl.auto/create only for some specific tables?

Thanks

Jean


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.