-->
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.  [ 2 posts ] 
Author Message
 Post subject: question for hibernate team--hibernate.hbm2ddl.auto=create-d
PostPosted: Tue Apr 12, 2005 11:39 pm 
Newbie

Joined: Thu Apr 07, 2005 7:56 am
Posts: 3
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

[b]Hibernate version:2.1.1

I encounter a weird problem. I am using hibernate for 2 months. Everything is fine until yesterday.

The hibernate would drop my existing jbpm tables and regenerate the table. And all my data has gone. I have to recover database from time to time.
Does any one ever encounter this problem?

Also hibernate team, what is the relationship between this config with create-drop tables?

hibernate.hbm2ddl.auto=create-drop|create|update

I did not specify this configuration on the hibernate config. What is the default value for this config item?

How to forbid hibernate to drop tables and recreate tables automatically?

Thanks!




[/b]

[b]Mapping documents:[/b]

[b]Code between sessionFactory.openSession() and session.close():[/b]

[b]Full stack trace of any exception that occurs:[/b]

[b]Name and version of the database you are using:[/b]

[b]The generated SQL (show_sql=true):[/b]

[b]Debug level Hibernate log excerpt:[/b]


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 13, 2005 9:30 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
The default is to not do anything. Post the logs of the SessionFactory startup


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