JPA的操作数据库方法的命名规则
最后一个有水印补一下:
IgnoreCase | findByNameIgnoreCase | where UPPER(name)=UPPER(?) |
再补充两个:
existisByXXX,结构与findBy类似,返回Boolean值,判断数据是否存在。
findTop100 效果等同于 top 100
更正图上错误:
GreaterThanEquals 是不对的 GreaterThanEqual findByAgeGreaterThanEqual where x.age >=?1