-->
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: schemaupdate not dropping unique constraint for MySql 4.1
PostPosted: Wed Jan 05, 2005 12:12 pm 
Newbie

Joined: Tue Nov 02, 2004 11:44 am
Posts: 8
Hibernate version: 3.0alpha

Name and version of the database you are using: MySql 4.1 (InnoDB tables)
JDBC Driver is 3.0.15ga

I have a Project table, and Owner column within it. Mistakenly I had unique constarint specified on Owner column which prevented me from assigning same owner for two projects!! "desc project" showed unique constraint on Project table.

I removed unique tag from XDoclet and ran schemaupdate. It didn't print anything to stdout. But when I did "desc project" again, unique constraint on Project table was gone.

Apparently using the application, I still can't assign the same owner to two projects. Has anyone ran into same issues? I know "Hibernate In Action" advises that schemaupdate is not very usable in practice, but it's always good to know the real limitations.


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.