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 p1 = NameAndPassword("张三","123", new Sort(,"id")); //分页 Page p2 = NameAndPassword("张三", "123", new PageRequest(1,10,new Sort("id")));

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


本文标签: 查询 后缀 文件 语句 打开