在具有大聚合根的CQRS系统中设计命令和生成事件的最佳方法是什么,例如10-20个属性?您是否有针对特定字段更新的命令,如UpdateNameCommand和UpdateEmailCommand,或者只是一个通用的UpdateOrganisationCommand?
public class OrganisationAggregate extends AbstractAnnotatedAggregateRoot<String> {
@AggregateIdentifier
private String id;
private String name;
private URL url;
private String email;
private String notes;
private String sortName;
private boolean inactive;
private Address address;
}