-->
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: Unique indexes not created with @UniqueConstraint annotation
PostPosted: Wed Oct 15, 2008 2:39 am 
Newbie

Joined: Tue Sep 23, 2008 6:07 am
Posts: 1
Location: Bangalore
[b]Hibernate version:[/b] hibernate core 3.3.0.SP1, hibernate annotations 3.4.0.GA

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

I have @Table annotation for all my java beans, something like this...
@Table(name = <table name>, uniqueConstraints = {@UniqueConstraint(columnNames = {<field name1>,<field name2>,<field name3>})})

And i create schema using maven hibernate plugin, the command being
mvn hibernate3:hbm2ddl -Dcafe.hbm2ddl=db

The unique indexes should be created on the fields mentioned with @UniqueConstraint annotation, but its not creating.

The above command echoes the DDL scripts on command prompt and that how i can make out whether the unieque indexes are created or not.

Can anybody let me know if this is a bug or a implementation bug?


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.