admin 管理员组文章数量: 887032
2023年12月17日发(作者:jar后缀的文件怎么打开)
@RestController public class TestController {
@Resource private PersonRepository personRepository; @GetMapping(value = "/test") public String test(Integer personId){
Person p = NameAndPassword("张三","123");
//排序 List
Person tempPerson=new Person(); (personId)); //通过实例查询
Person p3= Example((tempPerson))
return p+"+"+ p1 "+"+alElements()+"+"+p3; }JPA 查询语句关键字KeywordAndOrIs,EqualsBetweenLessThanLessThanEqualGreaterThanGreaterThanEqualAfterBeforeIsNullIsNotNull,NotNullLikeNotLikeStartingWithEndingWithContainingOrderBySamplefindByLastnameAndFirstnamefindByLastnameOrFirstnamefindByFirstname,findByFirstnameIs,findByFirstnameEqualsfindByStartDateBetweenfindByAgeLessThanfindByAgeLessThanEqualfindByAgeGreaterThanfindByAgeGreaterThanEqualfindByStartDateAfterfindByStartDateBeforefindByAgeIsNullfindByAge(Is)NotNullfindByFirstnameLikefindByFirstnameNotLikefindByFirstnameStartingWithfindByFirstnameEndingWithfindByFirstnameContainingfindByAgeOrderByLastnameDescJPQL snippet… where me = ?1 and ame = ?2… where me = ?1 or ame = ?2… where ame = 1?… where ate between 1? and ?2… where < ?1… where <= ?1… where > ?1… where >= ?1… where ate > ?1… where ate < ?1… where is null… where not null… where ame like ?1… where ame not like ?1… where ame like ?1 (parameter bound with appended %)… where ame like ?1 (parameter bound withprepended %)… where ame like ?1 (parameter bound wrapped in %)… where = ?1 order by me desc
版权声明:本文标题:springboot学习笔记5(JPA实现分页、排序、返回map集合) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1702795844h431222.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论