⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user.java

📁 struts + spring + ibatis的一个项目
💻 JAVA
字号:
package cn.luyu.ssi.domain;

import java.io.Serializable;

/**
 * @author: luyu
 * @date: Jul 14, 2008
 * 
 * @Function:
 */
public class User implements Serializable {
	private static final long serialVersionUID = 1342341324513423L;
	private String code;
	private String pbmdm;
	private String name;
	private Integer security;
	private String passwd;
	private String email;
	private String telM;
	private String duty;
	private String ipaddr;
	private Integer checkip;
	private String macaddr;
	private Integer checkmac;
	private String bz;
	private String ini;

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String code) {
		this.code = code;
	}

	/** full constructor */
	public User(String code, String pbmdm, String name, Integer security,
			String passwd, String email, String telM, String duty,
			String ipaddr, Integer checkip, String macaddr, Integer checkmac,
			String bz, String ini) {
		this.code = code;
		this.pbmdm = pbmdm;
		this.name = name;
		this.security = security;
		this.passwd = passwd;
		this.email = email;
		this.telM = telM;
		this.duty = duty;
		this.ipaddr = ipaddr;
		this.checkip = checkip;
		this.macaddr = macaddr;
		this.checkmac = checkmac;
		this.bz = bz;
		this.ini = ini;
	}

	// Property accessors

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getPbmdm() {
		return this.pbmdm;
	}

	public void setPbmdm(String pbmdm) {
		this.pbmdm = pbmdm;
	}

	public String getName() {
		return this.name;
	}

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

	public Integer getSecurity() {
		return this.security;
	}

	public void setSecurity(Integer security) {
		this.security = security;
	}

	public String getPasswd() {
		return this.passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}

	public String getEmail() {
		return this.email;
	}

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

	public String getTelM() {
		return this.telM;
	}

	public void setTelM(String telM) {
		this.telM = telM;
	}

	public String getDuty() {
		return this.duty;
	}

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

	public String getIpaddr() {
		return this.ipaddr;
	}

	public void setIpaddr(String ipaddr) {
		this.ipaddr = ipaddr;
	}

	public Integer getCheckip() {
		return this.checkip;
	}

	public void setCheckip(Integer checkip) {
		this.checkip = checkip;
	}

	public String getMacaddr() {
		return this.macaddr;
	}

	public void setMacaddr(String macaddr) {
		this.macaddr = macaddr;
	}

	public Integer getCheckmac() {
		return this.checkmac;
	}

	public void setCheckmac(Integer checkmac) {
		this.checkmac = checkmac;
	}

	public String getBz() {
		return this.bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}

	public String getIni() {
		return this.ini;
	}

	public void setIni(String ini) {
		this.ini = ini;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((bz == null) ? 0 : bz.hashCode());
		result = prime * result + ((checkip == null) ? 0 : checkip.hashCode());
		result = prime * result
				+ ((checkmac == null) ? 0 : checkmac.hashCode());
		result = prime * result + ((code == null) ? 0 : code.hashCode());
		result = prime * result + ((duty == null) ? 0 : duty.hashCode());
		result = prime * result + ((email == null) ? 0 : email.hashCode());
		result = prime * result + ((ini == null) ? 0 : ini.hashCode());
		result = prime * result + ((ipaddr == null) ? 0 : ipaddr.hashCode());
		result = prime * result + ((macaddr == null) ? 0 : macaddr.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result + ((passwd == null) ? 0 : passwd.hashCode());
		result = prime * result + ((pbmdm == null) ? 0 : pbmdm.hashCode());
		result = prime * result
				+ ((security == null) ? 0 : security.hashCode());
		result = prime * result + ((telM == null) ? 0 : telM.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final User other = (User) obj;
		if (bz == null) {
			if (other.bz != null)
				return false;
		} else if (!bz.equals(other.bz))
			return false;
		if (checkip == null) {
			if (other.checkip != null)
				return false;
		} else if (!checkip.equals(other.checkip))
			return false;
		if (checkmac == null) {
			if (other.checkmac != null)
				return false;
		} else if (!checkmac.equals(other.checkmac))
			return false;
		if (code == null) {
			if (other.code != null)
				return false;
		} else if (!code.equals(other.code))
			return false;
		if (duty == null) {
			if (other.duty != null)
				return false;
		} else if (!duty.equals(other.duty))
			return false;
		if (email == null) {
			if (other.email != null)
				return false;
		} else if (!email.equals(other.email))
			return false;
		if (ini == null) {
			if (other.ini != null)
				return false;
		} else if (!ini.equals(other.ini))
			return false;
		if (ipaddr == null) {
			if (other.ipaddr != null)
				return false;
		} else if (!ipaddr.equals(other.ipaddr))
			return false;
		if (macaddr == null) {
			if (other.macaddr != null)
				return false;
		} else if (!macaddr.equals(other.macaddr))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (passwd == null) {
			if (other.passwd != null)
				return false;
		} else if (!passwd.equals(other.passwd))
			return false;
		if (pbmdm == null) {
			if (other.pbmdm != null)
				return false;
		} else if (!pbmdm.equals(other.pbmdm))
			return false;
		if (security == null) {
			if (other.security != null)
				return false;
		} else if (!security.equals(other.security))
			return false;
		if (telM == null) {
			if (other.telM != null)
				return false;
		} else if (!telM.equals(other.telM))
			return false;
		return true;
	}
}

⌨️ 快捷键说明

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