Jpa学习
LWHuai
这个作者很懒,什么都没留下…
展开
-
Spring Data Jpa分页查询
Pageable pageable = PageRequest.of(page, pageSize);Page<User> page1 = userRepository.findAll(new Specification<User>() { @Nullable @Override public Predicate toPredicate(Root&...转载 2019-01-14 16:28:04 · 316 阅读 · 0 评论 -
Jpa复杂查询字段、分页、排序
Jpa复杂查询字段、分页、排序 page = page * pageSize; startTime = startTime + " 00:00:00"; endTime = endTime+ " 23:59:59"; Date startDate = DateUtil.parse(startTime, "yyyy-MM-dd HH:mm:ss"); Date endDate = Dat...原创 2019-02-22 14:13:24 · 1054 阅读 · 0 评论