转载 

Springboot JPA 中的一些关键字说明

分类:spring,java    758人阅读    IT小君  2022-05-25 12:28
关键字 方法命名 sql where字句
And findByNameAndPwd where name= ? and pwd =?
Or findByNameOrSex where name= ? or sex=?
Is,Equals findById,findByIdEquals where id= ?
Between findByIdBetween where id between ? and ?
LessThan findByIdLessThan where id < ?
LessThanEquals findByIdLessThanEquals where id <= ?
GreaterThan findByIdGreaterThan where id > ?
GreaterThanEquals findByIdGreaterThanEquals where id > = ?
After findByIdAfter where id > ?
Before findByIdBefore where id < ?
IsNull findByNameIsNull where name is null
isNotNull,NotNull findByNameNotNull where name is not null
Like findByNameLike where name like ?
NotLike findByNameNotLike where name not like ?
StartingWith findByNameStartingWith where name like ‘?%’
EndingWith findByNameEndingWith where name like ‘%?’
Containing findByNameContaining where name like ‘%?%’
OrderBy findByIdOrderByXDesc where id=? order by x desc
Not findByNameNot where name <> ?
In findByIdIn(Collection<?> c) where id in (?)
NotIn findByIdNotIn(Collection<?> c) where id not in (?)
True findByAaaTue where aaa = true
False findByAaaFalse where aaa = false
IgnoreCase findByNameIgnoreCase where UPPER(name)=UPPER(?)
点击广告,支持我们为你提供更好的服务

小众时尚单品在线电子商务网站模板

js+css3抽奖转盘旋转点餐代码

jQuery右端悬浮带返回顶部特效

网页设计开发公司网站模板

HTML5现代家居装潢公司网站模板

html5 svg夜空中星星流星动画场景特效

响应式时尚单品在线商城网站模板

css+js实现的颜色渐变数字时钟动画特效

HTML5数字产品服务公司网站模板

HTML5 Canvas竖直流动线条背景动画特效

中小型创意设计服务公司网站模板

canvas炫酷鼠标移动文字粒子特效

html5图标下拉搜索框自动匹配代码

响应式咖啡饮品宣传网站模板

css鼠标跟随文字模糊特效

html5 canvas进度条圆环图表统计动画特效

响应式太阳能能源公司网站模板

有机水果蔬菜HTML5网站模板

html5 canvas彩色碎片组合球形旋转动画特效

现代时尚家具公司网站模板

点击广告,支持我们为你提供更好的服务
 工具推荐 更多»
点击广告,支持我们为你提供更好的服务