【发布时间】:2017-06-26 22:09:13
【问题描述】:
在 JPA / Hibernate 中创建索引时,这些是否完全相同?
@Table (uniqueConstraints = @UniqueConstraint (columnNames = {"series", "date"}))
还有:
@Table (indexes = {@Index (name = "idx", columnList = "series, date", unique = true)})
如果不是,有什么区别?
【问题讨论】:
标签: hibernate jpa hibernate-annotations database-indexes jpa-annotations