JPA的操作数据库方法的命名规则

最后一个有水印补一下:

IgnoreCase findByNameIgnoreCase where UPPER(name)=UPPER(?)

再补充两个:

existisByXXX,结构与findBy类似,返回Boolean值,判断数据是否存在。

 findTop100 效果等同于 top 100

更正图上错误:

 GreaterThanEquals 是不对的 GreaterThanEqual findByAgeGreaterThanEqual where x.age >=?1

猜你喜欢

转载自blog.csdn.net/qacjava/article/details/83418888