hash and equals added to entities