Renamed methods. Added methods to compare entities of two different types with comparable keys.