JPA添加唯一索引约束

@Table(name = "tableName",uniqueConstraints=@UniqueConstraint(columnNames="A,B"))

你可能感兴趣的:(JPA添加唯一索引约束)