package com.jeeww.core.syspojo;

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

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

	public AgtbRoleResourceRelId() {
	}

	public AgtbRoleResourceRelId(String roleId, String resourceId) {
		this.roleId = roleId;
		this.resourceId = resourceId;
	}

	public String getRoleId() {
		return this.roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	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 AgtbRoleResourceRelId))
			return false;
		AgtbRoleResourceRelId castOther = (AgtbRoleResourceRelId) other;

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

	public int hashCode() {
		int result = 17;

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

}
