-->
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: SchemaExport always generate DROP TABLE ???
PostPosted: Thu Nov 20, 2003 11:59 am 
Regular
Regular

Joined: Tue Nov 04, 2003 12:37 pm
Posts: 57
Hello,

I used SchemaExportTask to generate .sql file for the mapping, but it always generate a line "DROP TABLE xxxx".

In fact, I did not add any "drop" parameter.


Eric


Top
 Profile  
 
 Post subject: Re: SchemaExport always generate DROP TABLE ???
PostPosted: Thu Nov 20, 2003 12:12 pm 
Pro
Pro

Joined: Wed Oct 08, 2003 10:31 am
Posts: 247
ericmacau wrote:
Hello,

I used SchemaExportTask to generate .sql file for the mapping, but it always generate a line "DROP TABLE xxxx".

In fact, I did not add any "drop" parameter.


Eric


The shemaUpdate doesn't generate the drop's.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 20, 2003 12:19 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Of course it does. Thats why you can turn it off:

http://www.hibernate.org/hib_docs/refer ... guide-s1-3

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 20, 2003 12:24 pm 
Pro
Pro

Joined: Wed Oct 08, 2003 10:31 am
Posts: 247
christian wrote:
Of course it does. Thats why you can turn it off:

http://www.hibernate.org/hib_docs/refer ... guide-s1-3


Sorry if I'm mistaken, but I only see a way to "only drop" the tables and no option to "not put" the drops...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 20, 2003 12:32 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
hes right - there is no option to only drop in SchemaExport.

But you can use schemaupdate instead.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 20, 2003 2:53 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
We are all confused. Yes, you can "only drop" as an option. We had a feature request for a "not drop" switch some time ago, but I guess it never got implemented. Maybe you should have a look in JIRA and if you can't find it, open a new one.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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.