www.pudn.com > restrant.zip > UserEntity.java, change:2014-01-25,size:1827b


package com.alex.restrantol.entity; 
 
import java.util.Date; 
 
public class UserEntity { 
	int id; 
	String name;  
	String truename; 
	String psw;  
	String email; 
	String tel; 
	String address;  
	Date regTime; 
	boolean status; 
	 
	public int getId() { 
		return id; 
	} 
	public void setId(int id) { 
		this.id = id; 
	} 
	public UserEntity() {} 
	public String getName() { 
		return name; 
	} 
	public void setName(String name) { 
		this.name = name; 
	} 
	public String getTruename() { 
		return truename; 
	} 
	public void setTruename(String truename) { 
		this.truename = truename; 
	} 
	public String getPsw() { 
		return psw; 
	} 
	public void setPsw(String psw) { 
		this.psw = psw; 
	} 
	public String getEmail() { 
		return email; 
	} 
	public void setEmail(String email) { 
		this.email = email; 
	} 
	public String getTel() { 
		return tel; 
	} 
	public void setTel(String tel) { 
		this.tel = tel; 
	} 
	public String getAddress() { 
		return address; 
	} 
	public void setAddress(String address) { 
		this.address = address; 
	} 
	public Date getRegTime() { 
		return regTime; 
	} 
	public void setRegTime(Date regTime) { 
		this.regTime = regTime; 
	} 
	public boolean isStatus() { 
		return status; 
	} 
	public void setStatus(boolean status) { 
		this.status = status; 
	} 
	 
	public int hashCode() { 
		final int prime = 31; 
		int result = 1; 
		result = prime * result + ((email == null) ? 0 : email.hashCode()); 
		return result; 
	} 
	public boolean equals(Object obj) { 
		if (this == obj) 
			return true; 
		if (obj == null) 
			return false; 
		if (getClass() != obj.getClass()) 
			return false; 
		UserEntity other = (UserEntity) obj; 
		if (email == null) { 
			if (other.email != null) 
				return false; 
		} else if (!email.equals(other.email)) 
			return false; 
		return true; 
	} 
}