Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example Showcase: Domain Events #109

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

seongbin9786
Copy link
Member

단지 예제 코드이므로 병합하지 않습니다.

예제 코드의 흐름

  1. ExampleCommandProcessor#doExampleOperation 호출

  2. ExampleEntity가 save됨

  3. Transaction 수행 시 Spring Data Jpa에서 해당 엔터티(ExampleEntity)에 @DomainEvents 어노테이션이 붙은 필드를 보고 해당 이벤트를 발행

  4. @EventListener로 마킹된 핸들러가 호출

테스트 결과

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant