User.java 3.62 KB
Newer Older
manxiaoqiang committed
1 2 3 4 5 6 7 8
package common.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;
kangxiaoshan committed
9
import java.util.Map;
manxiaoqiang committed
10 11 12 13 14 15 16 17 18

@Entity
public class User {

	private Long id;
	private String email;
	private String password;
	private String name;
	private Long role;
manxiaoqiang committed
19
	private String roleName;
manxiaoqiang committed
20
	private Long roleType;
manxiaoqiang committed
21
	private String roleTypeName;
manxiaoqiang committed
22
	private String auth;
kangxiaoshan committed
23
	private String authExtend;
manxiaoqiang committed
24
	private Boolean status;
manxiaoqiang committed
25
	private Long parent;
manxiaoqiang committed
26

manxiaoqiang committed
27 28
    private Long modifyAccount;
    private Long createAccount;
manxiaoqiang committed
29 30 31 32
	private Date modifyTime;
	private Date createTime;
	private Boolean delFlag;

kangxiaoshan committed
33 34
	private Map<String,String> authdataDic;

manxiaoqiang committed
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85

	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Long getRole() {
		return role;
	}

	public void setRole(Long role) {
		this.role = role;
	}

	public Long getRoleType() {
		return roleType;
	}

	public void setRoleType(Long roleType) {
		this.roleType = roleType;
	}

manxiaoqiang committed
86 87
	public Long getModifyAccount() {
		return modifyAccount;
manxiaoqiang committed
88 89
	}

manxiaoqiang committed
90 91
	public void setModifyAccount(Long modifyAccount) {
		this.modifyAccount = modifyAccount;
manxiaoqiang committed
92 93
	}

manxiaoqiang committed
94 95
	public Long getCreateAccount() {
		return createAccount;
manxiaoqiang committed
96 97
	}

manxiaoqiang committed
98 99
	public void setCreateAccount(Long createAccount) {
		this.createAccount = createAccount;
manxiaoqiang committed
100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Boolean getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Boolean delFlag) {
		this.delFlag = delFlag;
	}

manxiaoqiang committed
126 127 128 129 130 131 132 133 134
	@Transient
	public String getAuth() {
		return auth;
	}

	public void setAuth(String auth) {
		this.auth = auth;
	}

kangxiaoshan committed
135 136 137 138 139 140 141 142 143
	@Transient
	public String getAuthExtend() {
		return authExtend;
	}

	public void setAuthExtend(String authExtend) {
		this.authExtend = authExtend;
	}

manxiaoqiang committed
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
	public Boolean getStatus() {
		return status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	public String getRoleTypeName() {
		return roleTypeName;
	}

	public void setRoleTypeName(String roleTypeName) {
		this.roleTypeName = roleTypeName;
	}

	public String getRoleName() {

		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

manxiaoqiang committed
169 170 171 172 173 174 175 176
	public Long getParent() {
		return parent;
	}

	public void setParent(Long parent) {
		this.parent = parent;
	}

kangxiaoshan committed
177 178 179 180 181 182 183 184 185
	@Transient
	public Map<String, String> getAuthdataDic() {
		return authdataDic;
	}

	public void setAuthdataDic(Map<String, String> authdataDic) {
		this.authdataDic = authdataDic;
	}

manxiaoqiang committed
186 187 188 189 190 191 192 193
	@Override
	public String toString() {
		return "User{" +
				"id=" + id +
				", email='" + email + '\'' +
				", password='" + password + '\'' +
				", name='" + name + '\'' +
				", role=" + role +
manxiaoqiang committed
194
				", roleName='" + roleName + '\'' +
manxiaoqiang committed
195
				", roleType=" + roleType +
manxiaoqiang committed
196
				", roleTypeName='" + roleTypeName + '\'' +
manxiaoqiang committed
197
				", auth='" + auth + '\'' +
manxiaoqiang committed
198 199
				", status=" + status +
				", parent=" + parent +
manxiaoqiang committed
200 201
				", modifyAccount=" + modifyAccount +
				", createAccount=" + createAccount +
manxiaoqiang committed
202 203 204 205 206 207
				", modifyTime=" + modifyTime +
				", createTime=" + createTime +
				", delFlag=" + delFlag +
				'}';
	}
}