www.pudn.com > restrant.zip > AdminEntity.java, change:2013-12-21,size:1306b


package com.alex.restrantol.entity; 
 
public class AdminEntity { 
	private int adminId; 
	private String adminName; 
	private String adminPwd; 
	private boolean isSuper; 
	 
	@Override 
	public int hashCode() { 
		final int prime = 31; 
		int result = 1; 
		result = prime * result 
				+ ((adminName == null) ? 0 : adminName.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; 
		AdminEntity other = (AdminEntity) obj; 
		if (adminName == null) { 
			if (other.adminName != null) 
				return false; 
		} else if (!adminName.equals(other.adminName)) 
			return false; 
		return true; 
	} 
	public AdminEntity() {} 
	public int getAdminId() { 
		return adminId; 
	} 
	public void setAdminId(int adminId) { 
		this.adminId = adminId; 
	} 
	public String getAdminName() { 
		return adminName; 
	} 
	public void setAdminName(String adminName) { 
		this.adminName = adminName; 
	} 
	public String getAdminPwd() { 
		return adminPwd; 
	} 
	public void setAdminPwd(String adminPwd) { 
		this.adminPwd = adminPwd; 
	} 
	public boolean isSuper() { 
		return isSuper; 
	} 
	public void setSuper(boolean isSuper) { 
		this.isSuper = isSuper; 
	} 
	 
}