package com.glacier.frame.entity.system; public class UserRoleKey { private String roleId; private String userId; public String getRoleId() { return roleId; } public void setRoleId(String roleId) { this.roleId = roleId; } public String getUserId() { return userId; } public void setUserId(String userId) { this.userId = userId; } @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } UserRoleKey other = (UserRoleKey) that; return (this.getRoleId() == null ? other.getRoleId() == null : this.getRoleId().equals(other.getRoleId())) && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId())); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getRoleId() == null) ? 0 : getRoleId().hashCode()); result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode()); return result; } }