-->
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 with unique_key
PostPosted: Tue Apr 08, 2008 2:56 am 
Beginner
Beginner

Joined: Mon Sep 03, 2007 4:25 pm
Posts: 24
I have a situation where I need to add an uniqueness constraint to an existing table column. I updated the hbm file and added the unique-key in the right place, then executed a query to the table. The table does not make the adjustment.

The only way I can get the table to accept the uniqueness constraint is by dropping it and re-create from scratch.

And I have hibernate.hbm2ddl.auto=update set.

Is there a way to make the schema update without dropping the table?


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.