转载 

Springboot JPA 中的一些关键字说明

分类:spring,java    712人阅读    Damon  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(?)
点击广告,支持我们为你提供更好的服务

立体空间感3d几何体破碎

CSS 3D铅笔旋转效果

原子模型CSS3动画

React实现的电子商务管理后台模板 - Dashtar

法律服务和律师事务所HTML5模板 - AttorCo

CSS DIV画的字母Q

three.js立体感粒子动画

环绕式按钮菜单

单页形式个人主页HTML模板 - Wedo

百分比加载进度SVG线条动画

市政府和行政机构HTML5模板 - Towngov

Tailwindcss高级管理后台模板框架 - T-Wind

按钮的hover效果覆盖过渡

canvas生日快乐动画特效

创意代理和初创公司HTML模板 - Wan

CSS鼠标停靠图标变大

技能培训在线学习平台网站模板 - Collab

SEO和数字营销机构HTML模板 - SEOMY

功能齐全的ReactJs管理模板 - Adminto

残障人士服务网站HTML模板 - Medixare

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