JangSuhyun.log
로그인
JangSuhyun.log
로그인
[JPA] findAll 정렬
장수현
·
2021년 10월 13일
팔로우
0
JPA
findall
0
에어비앤비
목록 보기
8/15
JPA에서 findAll사용시 정렬하는 방법
homeRepository.findAll(Sort.by(Sort.Direction.DESC, "id"));
Sort.Direction.DESC : 내림차순
"id" : id 칼럼을 기준으로
장수현
팔로우
이전 포스트
[JPA] DB 초기화 | ddl-auto: create-drop
다음 포스트
[Thymeleaf] checkbox | list안에 있는 값만 check 하기
0개의 댓글
댓글 작성