mirror of https://github.com/elunez/eladmin
Add Index on Dept.pid in Dept.java
parent
a62b017a02
commit
7c81232e63
|
@ -19,7 +19,8 @@ import java.util.Set;
|
|||
@Entity
|
||||
@Getter
|
||||
@Setter
|
||||
@Table(name="dept")
|
||||
@Table(name="dept",
|
||||
indexs={@Index(name="idx_pid",columnList="pid")})
|
||||
public class Dept implements Serializable {
|
||||
|
||||
@Id
|
||||
|
@ -66,4 +67,4 @@ public class Dept implements Serializable {
|
|||
public int hashCode() {
|
||||
return Objects.hash(id, name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue