Auth.java 1.7 KB
Newer Older
manxiaoqiang committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
package common.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.util.Date;


@Entity
public class Auth {

	private Long id;
	private Long user;
	private String auth;

manxiaoqiang committed
16 17
	private Long modifyAccount;
	private Long createAccount;
manxiaoqiang committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
	private Date modifyTime;
	private Date createTime;
	private Boolean delFlag;

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

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

	public Long getUser() {
		return user;
	}

	public void setUser(Long user) {
		this.user = user;
	}

	public String getAuth() {
		return auth;
	}

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

manxiaoqiang committed
48 49
	public Long getModifyAccount() {
		return modifyAccount;
manxiaoqiang committed
50 51
	}

manxiaoqiang committed
52 53
	public void setModifyAccount(Long modifyAccount) {
		this.modifyAccount = modifyAccount;
manxiaoqiang committed
54 55
	}

manxiaoqiang committed
56 57
	public Long getCreateAccount() {
		return createAccount;
manxiaoqiang committed
58 59
	}

manxiaoqiang committed
60 61
	public void setCreateAccount(Long createAccount) {
		this.createAccount = createAccount;
manxiaoqiang committed
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
	}

	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;
	}

	@Override
	public String toString() {
		return "Auth{" +
				"id=" + id +
				", user=" + user +
				", auth='" + auth + '\'' +
manxiaoqiang committed
94 95
				", modifyAccount=" + modifyAccount +
				", createAccount=" + createAccount +
manxiaoqiang committed
96 97 98 99 100 101
				", modifyTime=" + modifyTime +
				", createTime=" + createTime +
				", delFlag=" + delFlag +
				'}';
	}
}