1. [PerfumePedia] Contoller Service 테스팅(진행중)
2. [SSAFY] PT면접 주제(OTT) 내용 추가
WordRepository JPQL 쿼리 수정
Join 사용 대신, Enum의 값 자체를 사용하도록 수정했다.
public List<Word> findByTypeAndTypeId(Long typeId, WordType wordType) {
String jpql = "select w from Word w where " +
"w." + wordType.name().toLowerCase() +
".id = :id";
return em.createQuery(jpql, Word.class)
.setParameter("id", typeId)
.getResultList();
}
[Spring Boot] JPA - JPQL 동적쿼리에서 자세히 볼 수 있다.
AutoCompleteService 테스트 완료
자동완성 기능에서 반환값 수정: 별칭 값에서 이름 값으로 수정