Refactored the hashing : it is now just the name,toString of the relation