@Query("select c from CarDO c where c.manufacturer=:manufacturer")
것이 가능 다음 실행하려면 지금 경우 model
에
@Query("select c from CarDO c where c.manufacturer=:manufacturer and c.model=:model")
List<CarDO> findAllByProperty(@Param("manufacturer") String manufacturer,
@Param("model") String model);
을 다음과 같은 코드가 null이 선택적 필드 관리 할 수 ?? 그렇다면 어떻게?
일부 필드가 null 인 경우 where 절로 "c.model IS NULL"을 넣습니다. 기본 JPQL – DN1