bugusermodel.java

来自「是一个Bug系统」· Java 代码 · 共 192 行

JAVA
192
字号
package com.runwit.bugreport.model;

import java.util.LinkedHashSet;
import java.util.Set;

public class BugUserModel {
	private long userId;

	private String account;

	private String password;

	private String name;

	private String sex;

	private String dept;

	private String duty;

	private String phone;

	private String mpPhone;

	private BugPrivModel[] bugPrivs;

	private String email;

	private long createTime;

	private int lockState;
	
	private Set groups = new LinkedHashSet();
	
	public BugUserModel() {
		// TODO Auto-generated constructor stub
	}
	
	
	

	public BugUserModel(long userId, String account, String password, String name, String sex, String dept, String duty, String phone, String mpPhone, BugPrivModel[] bugPrivs, String email, long createTime, int lockState) {
		super();
		this.userId = userId;
		this.account = account;
		this.password = password;
		this.name = name;
		this.sex = sex;
		this.dept = dept;
		this.duty = duty;
		this.phone = phone;
		this.mpPhone = mpPhone;
		this.bugPrivs = bugPrivs;
		this.email = email;
		this.createTime = createTime;
		this.lockState = lockState;
	}


	public void setGroups(Set groups) {
		this.groups = groups;
	}
	
	public Set getGroups() {
		return groups;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public BugPrivModel[] getBugPrivs() {
		return bugPrivs;
	}

	public void setBugPrivs(BugPrivModel[] bugPrivs) {
		this.bugPrivs = bugPrivs;
	}

	public long getCreateTime() {
		return createTime;
	}

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

	public String getDept() {
		return dept;
	}

	public void setDept(String dept) {
		this.dept = dept;
	}

	public String getDuty() {
		return duty;
	}

	public void setDuty(String duty) {
		this.duty = duty;
	}

	public String getEmail() {
		return email;
	}

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

	public int getLockState() {
		return lockState;
	}

	public void setLockState(int lockState) {
		this.lockState = lockState;
	}

	public String getMpPhone() {
		return mpPhone;
	}

	public void setMpPhone(String mpPhone) {
		this.mpPhone = mpPhone;
	}

	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 getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(obj == null)
			return false;
		
		if(obj instanceof BugUserModel) {
			BugUserModel uModel = (BugUserModel)obj;
			if(uModel.getUserId() == this.userId)
				return true;
		}
		
		return false;
	}
	
	@Override
	public int hashCode() {
		return  new Long(userId).hashCode();
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?