You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
1.5 KiB
79 lines
1.5 KiB
package sut.edu.zyp.dormitory.manage.entity;
|
|
|
|
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.EntityListeners;
|
|
import javax.persistence.Table;
|
|
import java.io.Serializable;
|
|
|
|
/**
|
|
* 宿舍管理员实体
|
|
*
|
|
* @author zyp
|
|
* @version 0.0.1
|
|
* @since 0.0.1
|
|
*/
|
|
@Entity
|
|
@EntityListeners(AuditingEntityListener.class)
|
|
@Table(name = "dormitory_manager")
|
|
public class DormitoryManagerEntity extends AbstractBaseEntity implements Serializable {
|
|
|
|
/**
|
|
* 宿舍管理员编号
|
|
*/
|
|
@Column(unique = true, length = 32, nullable = false)
|
|
private String sn;
|
|
|
|
/**
|
|
* 管理员姓名
|
|
*/
|
|
@Column(length = 32, nullable = false)
|
|
private String name;
|
|
|
|
/**
|
|
* 管理员密码
|
|
*/
|
|
@Column(length = 32)
|
|
private String password = "111111";
|
|
|
|
/**
|
|
* 管理员性别
|
|
*/
|
|
@Column(length = 4, nullable = false)
|
|
private String sex;
|
|
|
|
public String getSn() {
|
|
return sn;
|
|
}
|
|
|
|
public void setSn(String sn) {
|
|
this.sn = sn;
|
|
}
|
|
|
|
public String getName() {
|
|
return name;
|
|
}
|
|
|
|
public void setName(String name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public String getPassword() {
|
|
return password;
|
|
}
|
|
|
|
public void setPassword(String password) {
|
|
this.password = password;
|
|
}
|
|
|
|
public String getSex() {
|
|
return sex;
|
|
}
|
|
|
|
public void setSex(String sex) {
|
|
this.sex = sex;
|
|
}
|
|
}
|