working hashCode() on Relation