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