public < T , I extends Serializable > Slice < T > findAll ( final Specification < T > spec , final Pageable pageable , final Class < T > domainClass ) { final SimpleJpaNoCountRepository < T , I > noCountDao = new SimpleJpaNoCountRepository <> ( domainClass , em ) ; return noCountDao . findAll ( spec , pageable ) ; }
Searches without the need for an extra count query .