From 33d7be8bb32b6fccab67bf31118acc0876028c7c Mon Sep 17 00:00:00 2001 From: Yusun Choi Date: Fri, 15 Dec 2023 01:57:15 +0900 Subject: [PATCH] fix: Set methods with `@Transactional` to public (#6) --- .../server/domain/networking/service/NetworkService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Server/src/main/java/com/gdscswu_server/server/domain/networking/service/NetworkService.java b/Server/src/main/java/com/gdscswu_server/server/domain/networking/service/NetworkService.java index 2b74ae3..825db6f 100644 --- a/Server/src/main/java/com/gdscswu_server/server/domain/networking/service/NetworkService.java +++ b/Server/src/main/java/com/gdscswu_server/server/domain/networking/service/NetworkService.java @@ -46,7 +46,7 @@ public ResponseEntity findAllMembers(FilterOptionsRequestDto filterOptio } @Transactional - private boolean isMemberMatch(MemberResponseDto filteredMembers, FilterOptionsRequestDto filterOptionsRequestDto) { + public boolean isMemberMatch(MemberResponseDto filteredMembers, FilterOptionsRequestDto filterOptionsRequestDto) { // 셋다 true 여야 return 해주는 로직 boolean partMatch; boolean levelMatch; @@ -115,7 +115,7 @@ private boolean isMemberMatch(MemberResponseDto filteredMembers, FilterOptionsRe @Transactional - private MemberResponseDto createMemberResponseDto(Member member, FilterOptionsRequestDto filterOptionsRequestDto) { + public MemberResponseDto createMemberResponseDto(Member member, FilterOptionsRequestDto filterOptionsRequestDto) { // 북마크 db 에서 해당 멤버가 존재하는지 확인, bookmark 값 정하기 boolean bookmark = bookmarkRepository.existsByTargetMemberId(member.getId()); // generationResponseDtoList 만들기 위해 함수 호출 @@ -129,7 +129,7 @@ private MemberResponseDto createMemberResponseDto(Member member, FilterOptionsRe } @Transactional - private List createGenerationResponseDtoList(Member member, FilterOptionsRequestDto filterOptionsRequestDto) { + public List createGenerationResponseDtoList(Member member, FilterOptionsRequestDto filterOptionsRequestDto) { // 해당 멤버 Generation List generationList = generationRepository.findByMember(member); return generationList.stream() @@ -146,7 +146,7 @@ private List createGenerationResponseDtoList(Member membe } @Transactional - private List createProjectResponseDtoList(Member member, Generation generation, FilterOptionsRequestDto filterOptionsRequestDto) { + public List createProjectResponseDtoList(Member member, Generation generation, FilterOptionsRequestDto filterOptionsRequestDto) { List projects = projectRepository.findByMemberAndGeneration(member, generation); Set existingParts = new HashSet<>();