From b108873756ffa645cb8bb0fb8681007400eb287e Mon Sep 17 00:00:00 2001 From: belljun3395 <195850@jnu.ac.kr> Date: Thu, 19 Dec 2024 21:47:06 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20TxConfig=EC=97=90=EC=84=9C=20Transa?= =?UTF-8?q?ctionManagementConfigurer=EB=A5=BC=20=EA=B5=AC=ED=98=84?= =?UTF-8?q?=ED=95=98=EC=97=AC=20JpaTx=EB=A5=BC=20=EC=A7=80=EC=A0=95?= =?UTF-8?q?=ED=95=98=EC=97=AC=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/kotlin/repo/jpa/JpaTransactional.kt | 38 ------------------- 1 file changed, 38 deletions(-) delete mode 100644 repo/src/main/kotlin/repo/jpa/JpaTransactional.kt diff --git a/repo/src/main/kotlin/repo/jpa/JpaTransactional.kt b/repo/src/main/kotlin/repo/jpa/JpaTransactional.kt deleted file mode 100644 index abbd6152..00000000 --- a/repo/src/main/kotlin/repo/jpa/JpaTransactional.kt +++ /dev/null @@ -1,38 +0,0 @@ -package repo.jpa - -import org.springframework.core.annotation.AliasFor -import org.springframework.transaction.annotation.Isolation -import org.springframework.transaction.annotation.Propagation -import org.springframework.transaction.annotation.Transactional -import repo.config.JpaConfig.Companion.JPA_TX -import kotlin.reflect.KClass - -/** - * JPA 트랜잭션을 처리하는 어노테이션 - * transactionManager는 JpaConfig에서 설정한 값을 기본으로 사용한다. - */ -@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION) -@Retention(AnnotationRetention.RUNTIME) -@Transactional(transactionManager = JPA_TX) -annotation class JpaTransactional( - @get:AliasFor(annotation = Transactional::class, attribute = "label") - val label: Array = [], - @get:AliasFor(annotation = Transactional::class, attribute = "propagation") - val propagation: Propagation = Propagation.REQUIRED, - @get:AliasFor(annotation = Transactional::class, attribute = "isolation") - val isolation: Isolation = Isolation.DEFAULT, - @get:AliasFor(annotation = Transactional::class, attribute = "timeout") - val timeout: Int = -1, - @get:AliasFor(annotation = Transactional::class, attribute = "timeoutString") - val timeoutString: String = "", - @get:AliasFor(annotation = Transactional::class, attribute = "readOnly") - val readOnly: Boolean = false, - @get:AliasFor(annotation = Transactional::class, attribute = "rollbackFor") - val rollbackFor: Array> = [], - @get:AliasFor(annotation = Transactional::class, attribute = "rollbackForClassName") - val rollbackForClassName: Array = [], - @get:AliasFor(annotation = Transactional::class, attribute = "noRollbackFor") - val noRollbackFor: Array> = [], - @get:AliasFor(annotation = Transactional::class, attribute = "noRollbackForClassName") - val noRollbackForClassName: Array = [], -) \ No newline at end of file