Implement hash on object id