From 4b391c95ae4203c6e8b4665018b77f4ad83289af Mon Sep 17 00:00:00 2001 From: wjdtkdgns Date: Wed, 14 Aug 2024 03:37:34 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20update=20=EC=BF=BC=EB=A6=AC=20tx=20read-?= =?UTF-8?q?only=20=EC=84=A4=EC=A0=95=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/report/infrastructure/ReportHistoryQRepository.kt | 1 + .../susu/domain/report/infrastructure/ReportResultQRepository.kt | 1 + .../domain/user/infrastructure/UserStatusHistoryQRepository.kt | 1 + .../susu/domain/user/infrastructure/UserStatusQRepository.kt | 1 + 4 files changed, 4 insertions(+) diff --git a/domain/src/main/kotlin/com/oksusu/susu/domain/report/infrastructure/ReportHistoryQRepository.kt b/domain/src/main/kotlin/com/oksusu/susu/domain/report/infrastructure/ReportHistoryQRepository.kt index 7b5dfe8c..926e4ff0 100644 --- a/domain/src/main/kotlin/com/oksusu/susu/domain/report/infrastructure/ReportHistoryQRepository.kt +++ b/domain/src/main/kotlin/com/oksusu/susu/domain/report/infrastructure/ReportHistoryQRepository.kt @@ -12,6 +12,7 @@ import java.time.LocalDateTime @Transactional(readOnly = true) interface ReportHistoryQRepository { + @Transactional fun updateAllCreatedAt(createdAt: LocalDateTime): Long } diff --git a/domain/src/main/kotlin/com/oksusu/susu/domain/report/infrastructure/ReportResultQRepository.kt b/domain/src/main/kotlin/com/oksusu/susu/domain/report/infrastructure/ReportResultQRepository.kt index 4ec6a409..802829ba 100644 --- a/domain/src/main/kotlin/com/oksusu/susu/domain/report/infrastructure/ReportResultQRepository.kt +++ b/domain/src/main/kotlin/com/oksusu/susu/domain/report/infrastructure/ReportResultQRepository.kt @@ -12,6 +12,7 @@ import java.time.LocalDateTime @Transactional(readOnly = true) interface ReportResultQRepository { + @Transactional fun updateAllCreatedAt(createdAt: LocalDateTime): Long } diff --git a/domain/src/main/kotlin/com/oksusu/susu/domain/user/infrastructure/UserStatusHistoryQRepository.kt b/domain/src/main/kotlin/com/oksusu/susu/domain/user/infrastructure/UserStatusHistoryQRepository.kt index 57ae1aec..60428d38 100644 --- a/domain/src/main/kotlin/com/oksusu/susu/domain/user/infrastructure/UserStatusHistoryQRepository.kt +++ b/domain/src/main/kotlin/com/oksusu/susu/domain/user/infrastructure/UserStatusHistoryQRepository.kt @@ -17,6 +17,7 @@ interface UserStatusHistoryQRepository { fun getUidByToStatusId(toStatusId: Long): List + @Transactional fun updateAllCreatedAt(createdAt: LocalDateTime): Long } diff --git a/domain/src/main/kotlin/com/oksusu/susu/domain/user/infrastructure/UserStatusQRepository.kt b/domain/src/main/kotlin/com/oksusu/susu/domain/user/infrastructure/UserStatusQRepository.kt index bb098301..bae6321d 100644 --- a/domain/src/main/kotlin/com/oksusu/susu/domain/user/infrastructure/UserStatusQRepository.kt +++ b/domain/src/main/kotlin/com/oksusu/susu/domain/user/infrastructure/UserStatusQRepository.kt @@ -12,6 +12,7 @@ import java.time.LocalDateTime @Transactional(readOnly = true) interface UserStatusQRepository { + @Transactional fun updateAllCreatedAt(createdAt: LocalDateTime): Long }