With the Entity definition at the bottom, I am expecting only one unique constraint should be generated
- unique(personNumber, isActive)
However, the ddl generated contains below unexpected additional constraints
- unique(personNumber)
- unique(isActive)
There is no @Column(unique = true)
defined from both end of the mapping
@Table(uniqueConstraints = {
@UniqueConstraint(name = "UniqueNumberAndStatus",
columnNames = { "personNumber", "isActive" })
})