Skip to content

Commit

Permalink
[refactor] PlaceRepositoryImpl 통일성을 위해 innerJoin -> join 으로 변경
Browse files Browse the repository at this point in the history
related to: #127
  • Loading branch information
jo0oy committed Jan 26, 2024
1 parent 0b96279 commit fb7b538
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Slice<Place> findPlacesByCityIdAndPlaceName(Long cityId, String placeName
int pageSize = pageable.getPageSize();
List<Place> content = queryFactory
.selectFrom(place)
.innerJoin(place.city, city)
.join(place.city, city)
.where(
city.id.eq(cityId),
containsIgnoreCasePlaceName(placeName)
Expand All @@ -97,7 +97,7 @@ public Slice<Place> findPlacesWithCityByPlaceName(String placeName, Pageable pag
int pageSize = pageable.getPageSize();
List<Place> content = queryFactory
.selectFrom(place)
.innerJoin(place.city, city).fetchJoin()
.join(place.city, city).fetchJoin()
.where(
containsIgnoreCasePlaceName(placeName)
)
Expand All @@ -120,7 +120,7 @@ public List<Place> findPlacesByCityAndOrderByStoredCountLimitSize(City city, int

return queryFactory
.selectFrom(place)
.innerJoin(place.city)
.join(place.city)
.where(place.city.eq(city))
.orderBy(place.storedCount.desc(), place.createdAt.desc())
.limit(size)
Expand Down

0 comments on commit fb7b538

Please sign in to comment.