-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 기타(GENERAL) 소속은 모든 유저에게 노출되도록 한다. (#12)
* feat: 기타(GENERAL) 소속은 모든 유저에게 노출되도록 한다. * refactor: nullSafeBooleanBuilder로 NPE를 방지한다.
- Loading branch information
Showing
6 changed files
with
57 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
|
||
public enum AgencyType { | ||
STUDENT_COUNCIL, | ||
IN_SCHOOL_CLUB | ||
IN_SCHOOL_CLUB, | ||
GENERAL, | ||
} |
5 changes: 5 additions & 0 deletions
5
src/main/java/com/moneymong/domain/agency/repository/AgencyRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
package com.moneymong.domain.agency.repository; | ||
|
||
import java.util.List; | ||
|
||
import com.moneymong.domain.agency.entity.Agency; | ||
import com.moneymong.domain.agency.entity.enums.AgencyType; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface AgencyRepository extends JpaRepository<Agency, Long>, AgencyRepositoryCustom { | ||
List<Agency> findAgenciesByAgencyType(AgencyType agencyType); | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/com/moneymong/domain/agency/repository/AgencyRepositoryCustom.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
package com.moneymong.domain.agency.repository; | ||
|
||
import com.moneymong.domain.agency.entity.Agency; | ||
import com.moneymong.domain.agency.entity.enums.AgencyType; | ||
|
||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
|
||
public interface AgencyRepositoryCustom { | ||
Page<Agency> findByUniversityNameByPaging(String universityName, Pageable pageable); | ||
|
||
Page<Agency> findByUniversityNameAndAgencyTypeByPaging(String universityName, AgencyType type, Pageable pageable); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters