Skip to content

Commit

Permalink
chore: (#38) UseCase에 @transaction 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
softpeanut committed Sep 7, 2022
1 parent 20143f2 commit 867e721
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package team.comit.simtong.global.annotation

import org.springframework.transaction.annotation.Transactional

/**
*
* 조회 기능을 담당하는 사용자 UseCase를 나타내는 어노테이션
Expand All @@ -10,4 +12,5 @@ package team.comit.simtong.global.annotation
**/
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.CLASS)
@Transactional(readOnly = true)
annotation class ReadOnlyUseCase()
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package team.comit.simtong.global.annotation

import org.springframework.transaction.annotation.Transactional

/**
*
* 추가, 수정, 삭제 기능을 담당하는 사용자 UseCase를 나타내는 어노테이션
Expand All @@ -10,4 +12,5 @@ package team.comit.simtong.global.annotation
**/
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.CLASS)
@Transactional
annotation class UseCase()

0 comments on commit 867e721

Please sign in to comment.