public class A extends AggregateRoot { private final E entityInAggregate; public E getEntity() { return this.entityInAggregate; } public void Foo() { this.RaiseInternal(new FooEvent()); } public void Handle(FooEvent e) { // 变更状态 } } public class E extends Entity { public void Bar() { // 这里应如何实现? } } <p class="indent">
[该贴被JasonMing于2014-08-20 10:20修改过]
猜你喜欢
其他人在看