Add index dict.name in Dict.java

pull/296/head
wtune 2020-03-13 16:22:30 +08:00 committed by GitHub
parent 36eca397c1
commit 57d3f623dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ import java.util.List;
@Entity
@Getter
@Setter
@Table(name="dict")
@Table(name="dict", indexs={@Index=(name="idx_name", columnList="name")})
public class Dict implements Serializable {
@Id
@ -42,4 +42,4 @@ public class Dict implements Serializable {
private List<DictDetail> dictDetails;
public @interface Update {}
}
}