Skip to content

Commit da98010

Browse files
committed
feat: Support 관련하여 Read 용 트랜잭션 처리 추가
1 parent 116d0cc commit da98010

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/example/log4u/domain/supports/service/SupportService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public void createSupport(SupportCreateRequestDto supportCreateRequestDto) {
2626
supportRepository.save(support);
2727
}
2828

29+
@Transactional(readOnly = true)
2930
public Page<SupportOverviewGetResponseDto> getSupportPage(
3031
Integer page,
3132
SupportType supportType
@@ -35,6 +36,7 @@ public Page<SupportOverviewGetResponseDto> getSupportPage(
3536
return supportQuerydsl.getSupportOverviewGetResponseDtoPage(pageable, supportType);
3637
}
3738

39+
@Transactional(readOnly = true)
3840
public SupportGetResponseDto getSupportById(Long supportId) {
3941
return supportQuerydsl.getSupportGetResponseDtoById(supportId);
4042
}

0 commit comments

Comments
 (0)