Skip to content

Commit 67206e2

Browse files
committed
refactor(community): volunteer -> NewVolunteer
1 parent 1cf4742 commit 67206e2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/main/java/com/somemore/domains/community/repository/board/CommunityBoardRepositoryImpl.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import com.somemore.domains.community.domain.CommunityBoard;
88
import com.somemore.domains.community.domain.QCommunityBoard;
99
import com.somemore.domains.community.repository.mapper.CommunityBoardView;
10-
import com.somemore.domains.volunteer.domain.QVolunteer;
10+
import com.somemore.volunteer.domain.QNEWVolunteer;
1111
import lombok.RequiredArgsConstructor;
1212
import org.apache.commons.lang3.StringUtils;
1313
import org.springframework.data.domain.Page;
@@ -27,7 +27,7 @@ public class CommunityBoardRepositoryImpl implements CommunityBoardRepository {
2727
private final CommunityBoardJpaRepository communityBoardJpaRepository;
2828

2929
private static final QCommunityBoard communityBoard = QCommunityBoard.communityBoard;
30-
private static final QVolunteer volunteer = QVolunteer.volunteer;
30+
private static final QNEWVolunteer volunteer = QNEWVolunteer.nEWVolunteer;
3131

3232
@Override
3333
public CommunityBoard save(CommunityBoard communityBoard) {
@@ -91,6 +91,11 @@ public void deleteAllInBatch() {
9191
communityBoardJpaRepository.deleteAllInBatch();
9292
}
9393

94+
@Override
95+
public List<CommunityBoard> findAllByDeletedFalse() {
96+
return communityBoardJpaRepository.findAllByDeletedFalse();
97+
}
98+
9499
private JPAQuery<CommunityBoardView> getCommunityBoardsQuery() {
95100
return queryFactory
96101
.select(Projections.constructor(CommunityBoardView.class,
@@ -101,11 +106,6 @@ private JPAQuery<CommunityBoardView> getCommunityBoardsQuery() {
101106
.orderBy(communityBoard.createdAt.desc());
102107
}
103108

104-
@Override
105-
public List<CommunityBoard> findAllByDeletedFalse() {
106-
return communityBoardJpaRepository.findAllByDeletedFalse();
107-
}
108-
109109
private BooleanExpression isNotDeleted() {
110110
return communityBoard.deleted.eq(false);
111111
}

src/main/java/com/somemore/domains/community/repository/comment/CommunityCommentRepositoryImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import com.somemore.domains.community.domain.CommunityComment;
77
import com.somemore.domains.community.domain.QCommunityComment;
88
import com.somemore.domains.community.repository.mapper.CommunityCommentView;
9-
import com.somemore.domains.volunteer.domain.QVolunteer;
9+
import com.somemore.volunteer.domain.QNEWVolunteer;
1010
import lombok.RequiredArgsConstructor;
1111
import org.springframework.data.domain.Page;
1212
import org.springframework.data.domain.Pageable;
@@ -24,7 +24,7 @@ public class CommunityCommentRepositoryImpl implements CommunityCommentRepositor
2424
private final CommunityCommentJpaRepository communityCommentJpaRepository;
2525

2626
private static final QCommunityComment communityComment = QCommunityComment.communityComment;
27-
private static final QVolunteer volunteer = QVolunteer.volunteer;
27+
private static final QNEWVolunteer volunteer = QNEWVolunteer.nEWVolunteer;
2828

2929
@Override
3030
public CommunityComment save(CommunityComment communityComment) {

0 commit comments

Comments
 (0)