package com.landy.gum.system.model;
|
|
import java.util.Date;
|
|
import javax.persistence.Column;
|
import javax.persistence.Entity;
|
import javax.persistence.GeneratedValue;
|
import javax.persistence.Id;
|
import javax.persistence.Table;
|
|
import com.landy.framework.core.model.BaseModel;
|
|
/**
|
* Model class for TSysUser
|
*/
|
@Entity
|
@Table(name = "t_sys_user")
|
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true)
|
public class TSysUserModel extends BaseModel {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = -5566262017552719355L;
|
/**
|
*
|
*/
|
//id
|
private String id;
|
//用户类型
|
private String type;
|
//登录名
|
private String loginName;
|
//真实姓名
|
private String realName;
|
//密码
|
private String password;
|
//email
|
private String email;
|
//mobile
|
private String mobile;
|
//phone
|
private String phone;
|
//birthday
|
private Date birthday;
|
//logoPath
|
private String logoPath;
|
//comment
|
private String comment;
|
//status
|
private String status;
|
//isValid
|
private String isValid;
|
|
/**
|
* Get id
|
*/
|
@Column(name = "id")
|
@Id @GeneratedValue(generator = "UUIDGenerator")
|
public String getId() {
|
return id;
|
}
|
|
/**
|
* Set id
|
*/
|
public void setId(String id) {
|
this.id = id;
|
addValidField("id");
|
}
|
|
/**
|
* Get 用户类型
|
* 0为普通用户 1为超级管理员 2为普通管理员
|
*/
|
@Column(name = "type")
|
public String getType() {
|
return type;
|
}
|
|
/**
|
* Set 用户类型
|
* 0为普通用户 1为超级管理员 2为普通管理员
|
*/
|
public void setType(String type) {
|
this.type = type;
|
addValidField("type");
|
}
|
|
/**
|
* Get 登录名
|
*/
|
@Column(name = "login_name")
|
public String getLoginName() {
|
return loginName;
|
}
|
|
/**
|
* Set 登录名
|
*/
|
public void setLoginName(String loginName) {
|
this.loginName = loginName;
|
addValidField("loginName");
|
}
|
|
/**
|
* Get 真实姓名
|
*/
|
@Column(name = "real_name")
|
public String getRealName() {
|
return realName;
|
}
|
|
/**
|
* Set 真实姓名
|
*/
|
public void setRealName(String realName) {
|
this.realName = realName;
|
addValidField("realName");
|
}
|
|
/**
|
* Get 密码
|
*/
|
@Column(name = "password")
|
public String getPassword() {
|
return password;
|
}
|
|
/**
|
* Set 密码
|
*/
|
public void setPassword(String password) {
|
this.password = password;
|
addValidField("password");
|
}
|
|
/**
|
* Get email
|
*/
|
@Column(name = "email")
|
public String getEmail() {
|
return email;
|
}
|
|
/**
|
* Set email
|
*/
|
public void setEmail(String email) {
|
this.email = email;
|
addValidField("email");
|
}
|
|
/**
|
* Get mobile
|
*/
|
@Column(name = "mobile")
|
public String getMobile() {
|
return mobile;
|
}
|
|
/**
|
* Set mobile
|
*/
|
public void setMobile(String mobile) {
|
this.mobile = mobile;
|
addValidField("mobile");
|
}
|
|
/**
|
* Get phone
|
*/
|
@Column(name = "phone")
|
public String getPhone() {
|
return phone;
|
}
|
|
/**
|
* Set phone
|
*/
|
public void setPhone(String phone) {
|
this.phone = phone;
|
addValidField("phone");
|
}
|
|
/**
|
* Get birthday
|
*/
|
@Column(name = "birthday")
|
public Date getBirthday() {
|
return birthday;
|
}
|
|
/**
|
* Set birthday
|
*/
|
public void setBirthday(Date birthday) {
|
this.birthday = birthday;
|
addValidField("birthday");
|
}
|
|
/**
|
* Get logoPath
|
*/
|
@Column(name = "logo_path")
|
public String getLogoPath() {
|
return logoPath;
|
}
|
|
/**
|
* Set logoPath
|
*/
|
public void setLogoPath(String logoPath) {
|
this.logoPath = logoPath;
|
addValidField("logoPath");
|
}
|
|
/**
|
* Get comment
|
*/
|
@Column(name = "comment")
|
public String getComment() {
|
return comment;
|
}
|
|
/**
|
* Set comment
|
*/
|
public void setComment(String comment) {
|
this.comment = comment;
|
addValidField("comment");
|
}
|
|
/**
|
* Get status
|
*/
|
@Column(name = "status")
|
public String getStatus() {
|
return status;
|
}
|
|
/**
|
* Set status
|
*/
|
public void setStatus(String status) {
|
this.status = status;
|
addValidField("status");
|
}
|
|
/**
|
* Get isValid
|
*/
|
@Column(name = "is_valid")
|
public String getIsValid() {
|
return isValid;
|
}
|
|
/**
|
* Set isValid
|
*/
|
public void setIsValid(String isValid) {
|
this.isValid = isValid;
|
addValidField("isValid");
|
}
|
|
}
|