Created
July 19, 2019 12:36
-
-
Save hpgrahsl/c5196b48d511208ca60516a5f1f17f10 to your computer and use it in GitHub Desktop.
PurchaseOrder Class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity | |
public class PurchaseOrder { | |
//... | |
@DomainEvents | |
private Collection<Outboxable> triggerOutboxEvents() { | |
return Arrays.asList(OrderUpsertedEvent.of(this)); | |
} | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment