I'm ignoring the org.hibernate.annotations.Index annotation since it's deprecated. Obviously, creating the constraint *and* the index is wrong. But...
Currently, if you have a unique column and something like the following, no index will be generated -- only the unique constraint will be created (as it probably should be).
{code} @Table( indexes = @Index(name = "payment_payment_formalid_idx", columnList = "formalId", unique = true) ) {code}
However, the "payment_payment_formalid_idx" name isn't used for the constraint. That might be the real fix.
Missing anything?
|