[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?
|