package com.jeeww.core.syspojo;

// Generated 2014-12-9 13:25:18 by Hibernate Tools 4.0.0

/**
 * AgtbCustomMenuResourceRelId generated by hbm2java.
 */
public class AgtbCustomMenuResourceRelId implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	private String menuId;
	private String resourceId;

	public AgtbCustomMenuResourceRelId() {
	}

	public AgtbCustomMenuResourceRelId(String menuId, String resourceId) {
		this.menuId = menuId;
		this.resourceId = resourceId;
	}

	public String getMenuId() {
		return this.menuId;
	}

	public void setMenuId(String menuId) {
		this.menuId = menuId;
	}

	public String getResourceId() {
		return this.resourceId;
	}

	public void setResourceId(String resourceId) {
		this.resourceId = resourceId;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AgtbCustomMenuResourceRelId))
			return false;
		AgtbCustomMenuResourceRelId castOther = (AgtbCustomMenuResourceRelId) other;

		return ((this.getMenuId() == castOther.getMenuId()) || (this.getMenuId() != null
				&& castOther.getMenuId() != null && this.getMenuId().equals(castOther.getMenuId())))
				&& ((this.getResourceId() == castOther.getResourceId()) || (this.getResourceId() != null
						&& castOther.getResourceId() != null && this.getResourceId().equals(castOther.getResourceId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getMenuId() == null ? 0 : this.getMenuId().hashCode());
		result = 37 * result + (getResourceId() == null ? 0 : this.getResourceId().hashCode());
		return result;
	}

}
