package com.glacier.frame.entity.system; public class DepRoleKey { private String depId; private String roleId; public String getDepId() { return depId; } public void setDepId(String depId) { this.depId = depId; } 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; } DepRoleKey other = (DepRoleKey) that; return (this.getDepId() == null ? other.getDepId() == null : this.getDepId().equals(other.getDepId())) && (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 + ((getDepId() == null) ? 0 : getDepId().hashCode()); result = prime * result + ((getRoleId() == null) ? 0 : getRoleId().hashCode()); return result; } }