2018-10-16 20:35:42 +08:00

127 lines
2.9 KiB
Java

package cn.mafangui.hotel.entity;
import java.util.Date;
public class Worker {
private Integer workerId;
private String userName;
private String password;
private String workerName;
private String phone;
private String email;
private String address;
private Date createTime;
private Date updateTime;
public Integer getWorkerId() {
return workerId;
}
public void setWorkerId(Integer workerId) {
this.workerId = workerId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName == null ? null : userName.trim();
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password == null ? null : password.trim();
}
public String getWorkerName() {
return workerName;
}
public void setWorkerName(String workerName) {
this.workerName = workerName == null ? null : workerName.trim();
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone == null ? null : phone.trim();
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email == null ? null : email.trim();
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address == null ? null : address.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Worker() {
}
public Worker(String userName, String password) {
this.userName = userName;
this.password = password;
}
public Worker(String userName, String password, String workerName, String phone, String email, String address) {
this.userName = userName;
this.password = password;
this.workerName = workerName;
this.phone = phone;
this.email = email;
this.address = address;
}
@Override
public String toString() {
return "Worker{" +
"workerId=" + workerId +
", userName='" + userName + '\'' +
", password='" + password + '\'' +
", workerName='" + workerName + '\'' +
", phone='" + phone + '\'' +
", email='" + email + '\'' +
", address='" + address + '\'' +
", createTime=" + createTime +
", updateTime=" + updateTime +
'}';
}
}