Adding getHash and sameHashAs method to EntityCollection