작동하지 제한하려는 JPA 저장소로 :스프링 데이터 JPA가 주어
public interface CityRepository extends JpaRepository<City, Long>
그리고라는 방법
public List<City> findFirst4ByHighlightedAndCountryCodeOrderByNameAsc(Boolean highlighted, String countryCode);
내가이 쿼리 받고 있어요 : 당신으로
select city0_.idCity as idCity1_2_, city0_.countryCode as countryC2_2_, city0_.highlighted as highligh3_2_, city0_.latitude as latitude4_2_, city0_.longitude as longitud5_2_, city0_.name as name6_2_, city0_.numPublishedItems as numPubli7_2_, city0_.idRegion as idRegion8_2_, city0_.url as url9_2_ from web_city city0_ where city0_.highlighted=? and city0_.countryCode=? order by city0_.name asc
을 볼 수 있듯이 한계는 적용되지 않습니다. 내가 뭘 잘못하고있어?
어떤 스프링 데이터 JPA 버전을 사용하고 있습니까? –
나는 1.1.9.RELEASE를 사용하고 있습니다. – ilopezluna