-->
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.  [ 6 posts ] 
Author Message
 Post subject: Stopping schema update
PostPosted: Mon Nov 06, 2006 7:59 am 
Beginner
Beginner

Joined: Wed Oct 25, 2006 9:05 am
Posts: 40
Location: France, Lieusaint
Hi,

How can I stop the schema update/persistence ?

I have deleted the line
___________________
<property name="hibernate.hbm2ddl.auto" value="update"/>
--------------------------

but It always persists..!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 07, 2006 8:02 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Code:
<property name="hibernate.hbm2ddl.auto" value="none"/>

which should be the default AFAIR (unless you are using JBoss EJB3?)

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 08, 2006 10:45 am 
Beginner
Beginner

Joined: Wed Oct 25, 2006 9:05 am
Posts: 40
Location: France, Lieusaint
No, it's not the default.

I use the SPRING framework.

thx


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 08, 2006 5:57 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Code:
String autoSchemaExport = properties.getProperty(Environment.HBM2DDL_AUTO);
      if ( "validate".equals(autoSchemaExport) ) settings.setAutoValidateSchema(true);
      if ( "update".equals(autoSchemaExport) ) settings.setAutoUpdateSchema(true);
      if ( "create".equals(autoSchemaExport) ) settings.setAutoCreateSchema(true);
      if ( "create-drop".equals(autoSchemaExport) ) {
         settings.setAutoCreateSchema(true);
         settings.setAutoDropSchema(true);
      }

Actually it is the default. Maybe Spring force a different default

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 09, 2006 5:24 am 
Beginner
Beginner

Joined: Wed Oct 25, 2006 9:05 am
Posts: 40
Location: France, Lieusaint
No, it's not the default.

I use the SPRING framework.

thx


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 13, 2006 1:14 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
So Spring is doing something wrong (overriding a default). Ask them to change that.

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 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.