添加普通索引
@Table(name="t_token", indexes={@Index(name="token_strIndex", columnList="tokenStr"}
添加唯一索引
@Column(unique=true)
添加普通索引
@Table(name="t_token", indexes={@Index(name="token_strIndex", columnList="tokenStr"}
添加唯一索引
@Column(unique=true)
转载于:https://www.cnblogs.com/dj3839/p/8086570.html