SQL Constraints 每个表可以有多个 UNIQUE 约束,但是每个表只能有一个 PRIMARY KEY 约束。 http://www.w3school.com.cn/sql/sql_unique.asp 另外相关:@OneToMany