File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
src/main/java/com/somemore Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ public interface LocationRepository {
77
88 Location save (Location location );
99
10+ Location saveAndFlush (Location location );
11+
1012 Optional <Location > findById (Long id );
1113
1214 void deleteAllInBatch ();
Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ public Location save(Location location) {
1818 return locationJpaRepository .save (location );
1919 }
2020
21+ @ Override
22+ public Location saveAndFlush (Location location ) {
23+ return locationJpaRepository .saveAndFlush (location );
24+ }
25+
2126 @ Override
2227 public Optional <Location > findById (Long id ) {
2328 return locationJpaRepository .findById (id );
Original file line number Diff line number Diff line change 11package com .somemore .recruitboard .repository ;
22
3+ import com .querydsl .core .QueryFactory ;
4+ import com .querydsl .jpa .impl .JPAQueryFactory ;
35import com .somemore .recruitboard .domain .RecruitBoard ;
46import java .util .Optional ;
57import lombok .RequiredArgsConstructor ;
1012public class RecruitBoardRepositoryImpl implements RecruitBoardRepository {
1113
1214 private final RecruitBoardJpaRepository recruitBoardJpaRepository ;
15+ private final JPAQueryFactory queryFactory ;
1316
1417 @ Override
1518 public RecruitBoard save (RecruitBoard recruitBoard ) {
You can’t perform that action at this time.
0 commit comments