Mastering Development

How to write custom findAll() with Specification in JPA repository

When I use skuRepository.getAll(), it works OK, but when I apply filters, defined in Specification (List filteredRegs = skuRepository.getAll(specification)) I still get all the rows of the table What should i do to apply the specifications to my custom method? public interface SkuRepository extends CrudRepository<Sku, Integer>, JpaSpecificationExecutor<Sku> { @Query(“select s from Sku s join fetch […]