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