Added hashCode and equals methods on domain objects.