@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof UserGroupGroupRole)) { return false; } UserGroupGroupRole userGroupGroupRole = (UserGroupGroupRole) obj; UserGroupGroupRolePK primaryKey = userGroupGroupRole.getPrimaryKey(); if (getPrimaryKey().equals(primaryKey)) { return true; } else { return false; } }
@Override public int compareTo(UserGroupGroupRole userGroupGroupRole) { UserGroupGroupRolePK primaryKey = userGroupGroupRole.getPrimaryKey(); return getPrimaryKey().compareTo(primaryKey); }