class ParentCommand {
// ...
@TargetAggregateIdentifier
String aggregateId;
}
class ChildCommand extends ParentCommand {
}
@CommandHandler
public void handle(ParentCommand command) {
// ...
}
I've never tried this exactly, but it seems like it should work.
Maybe you can create an interface and have both commands implement it. Then handle the interface in you command handler.
I've never tried this exactly, but it seems like it should work.
--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.