반응형
250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- JavaScript
- Python
- aws
- docker
- VPN
- codedeploy
- PostgreSQL
- kubeflow
- Jenkins
- or some instances in your deployment group are experiencing problems.
- IntelliJ
- codepipeline
- chart.js
- aws cicd
- Airflow
- codedeploy error
- bootstrap
- Spring
- AWS CI/CD 구축하기
- 도커
- Spring Error
- Flux
- Kafka
- redis
- node
- codebuild
- SQL
- chartjs
- java bigdecimal
- COALESCE
Archives
- Today
- Total
목록spring 다중 검색 (1)
Small Asteroid Blog

JPA Specification JPA 를 사용할 때 Repository 에서 id 를 검색할 경우 findById Id 와 name을 검색하고자 하는 경우 findByIdAndName 으로 쿼리 메서드를 만들 수 있다. 하지만 검색 조건이 많아질수록 쿼리 메소드가 길어지면서 가독성도 떨어지고 비효율적이다. 해서 JPA 에서 Specification 으르 제공한다. Specification 을 사용해 원하는 조건을 상황에 맞게 선택해서 추가할 수 있다. 사용법 MemberEntity 생성하기 @NoArgsConstructor @AllArgsConstructor @Getter @Setter @Entity @SuperBuilder public class MemberEntity{ @Id @GeneratedVa..
백엔드/Spring
2022. 11. 21. 23:34