반응형
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 |
Tags
- redis
- codepipeline
- Spring
- chartjs
- codebuild
- Spring Error
- codedeploy
- Kafka
- 도커
- codedeploy error
- chart.js
- aws cicd
- Jenkins
- IntelliJ
- PostgreSQL
- kubeflow
- COALESCE
- AWS CI/CD 구축하기
- JavaScript
- openlens
- Airflow
- Python
- SQL
- Flux
- bootstrap
- VPN
- node
- java bigdecimal
- docker
- aws
Archives
- Today
- Total
목록BooleanExpression (1)
Small Asteroid Blog
[spring] querydsl 동적쿼리
동적쿼리가 필요한 상황에서 querydsl을 사용하면 쉽게 해결 가능하다. BooleanBuilder BooleanBuilder를 이용해서 조건들을 이어붙여 where 문에 넣어주는 방식이다 and , or 사용 private List searchMember1(String usernameCond, Integer ageCond) { BooleanBuilder builder = new BooleanBuilder(); if (usernameCond != null) { builder.and(member.username.eq(usernameCond)); } if (ageCond != null) { builder.and(member.age.eq(ageCond)); } return queryFactory .selec..
백엔드/Spring
2021. 9. 10. 10:44