-->
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: Update schema question
PostPosted: Fri Sep 26, 2003 7:22 am 
Newbie

Joined: Fri Sep 26, 2003 7:08 am
Posts: 7
I'm using Hibernate to maintain databases with dynamic structure. I'm using SchemaUpdate class to keep mapping files and db tables synchronized. Mapping file is a source, so I want DB schema to be same as its description in .hbm.xml file.
Problem is followed. When I REMOVE one property from mapping file, schema updator does not delete this column in database. Hibernate sources analysis showed that Hibernate can only add columns, but can't drop them.
Is there any way to drop those columns except from direct SQL query?

DB server is MySql, Hibernate v. 2.0.3

Thanks in advance


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.