77import com .somemore .domains .community .domain .CommunityBoard ;
88import com .somemore .domains .community .domain .QCommunityBoard ;
99import com .somemore .domains .community .repository .mapper .CommunityBoardView ;
10- import com .somemore .domains . volunteer .domain .QVolunteer ;
10+ import com .somemore .volunteer .domain .QNEWVolunteer ;
1111import lombok .RequiredArgsConstructor ;
1212import org .apache .commons .lang3 .StringUtils ;
1313import 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 }
0 commit comments