40 lines
729 B
Java
40 lines
729 B
Java
package cn.palmte.work.model;
|
|
|
|
import org.hibernate.annotations.GenericGenerator;
|
|
|
|
import javax.persistence.*;
|
|
|
|
/**
|
|
* 部门
|
|
*/
|
|
@Entity
|
|
@Table(name = "dept")
|
|
public class Dept {
|
|
public static final int FAILED = 1;
|
|
public static final int SUCCESS = 0;
|
|
/**
|
|
* id
|
|
*/
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
@GenericGenerator(name = "persistenceGenerator", strategy = "increment")
|
|
private Integer id;
|
|
|
|
private String name;
|
|
|
|
public Integer getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Integer id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
} |