Skip to content

Commit 7fc3fa4

Browse files
Update ProductRepository.java
1 parent 08d3b67 commit 7fc3fa4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SpringBootDataJpa/SpringBootDataJpa-Mysql-FindBy/src/main/java/com/app/repo/ProductRepository.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ public interface ProductRepository extends JpaRepository<Product, Integer> {
5656
List<Product> findByProdCostOrderByProdCodeDesc(Double pcost); // in desending order
5757

5858

59-
59+
// 9. ... where pcode like "%A%" and pid between ? and ?
60+
List<Product> findByProdCodeLikeAndProdIdBetween(String pcode,Integer pid1,Integer pid2);
61+
6062

6163

6264

0 commit comments

Comments
 (0)