Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
주요 변경 사항
이벤트 핸들러에도
@Transactional()
데코레이터를 사용하여 트랜잭션을 적용할 수 있도록 구현합니다.변경 이유
이벤트 처리가 완전하게 비동기로 처리됨에 따라 트랜잭션의 entity manager를 사용하면 문제가 발생할 수 있습니다.
이에 따라, 이벤트 핸들러에서는 트랜잭션의 entity manager가 아니라 기본 entity manager를 사용하도록 수정합니다.
테스트는 나중에 작성합니다. (너무 딜레이됨)