package com.softserveinc.tender.repo;


import com.softserveinc.tender.entity.Tender;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface TenderRepository extends JpaRepository<Tender, Integer> {
    @Query("select t from Tender t where t.suitablePrice between :min and :max")
    List<Tender> filter(@Param("min") double min,
                        @Param("max") double max);

}

@@ -455,12 +455,25 @@
 %3E fi
-lter
+ndBySuitablePrice
 (@Pa
@@ -495,16 +495,29 @@
 le min,%0A
+             
         

change method name for filter