package com.jeeww.core.syspojo;

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

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

	public AgtbUserRoleRelId() {
	}

	public AgtbUserRoleRelId(String userId, String roleId) {
		this.userId = userId;
		this.roleId = roleId;
	}

	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

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

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

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

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

	public int hashCode() {
		int result = 17;

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

}
