Skip to content

Instantly share code, notes, and snippets.

@hpgrahsl
Created July 19, 2019 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hpgrahsl/c5196b48d511208ca60516a5f1f17f10 to your computer and use it in GitHub Desktop.
Save hpgrahsl/c5196b48d511208ca60516a5f1f17f10 to your computer and use it in GitHub Desktop.
PurchaseOrder Class
@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