spring boot jpa 使用 List findAll(Example example)查詢數據


 

直接上代碼

//查詢條件對象
TinventivePrinciple time = new TinventivePrinciple();
//設置需要查詢的條件(賦值)
time.setIsTime(Short.parseShort("1"));
//定義example1
Example<TinventivePrinciple> example1 = Example.of(time);
//查詢數據
List<TinventivePrinciple> timeList = tinventivePrincipleDao.findAll(example1);

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM