Domain objects should have equals and hashCode methods; implemented by the annotation @EqualsAndHashCode