[Querydsl] 동적으로 where 만들기
먼저, 여기에서 말하는 동적 where는 아래와 같은 where절을 의미합니다. WHERE userName = '홍길동' AND ( age = 24 or telno = '010-1111-2222' ) Querydsl에서는 BooleanBuilder를 사용하여 이와 같은 복합 검색조건을 만들 수 있습니다. 방법 1) and를 기준으로 괄호를 구분 ( and가 나오면 새로운 괄호의 시작 ) ex) and roleCode = 1 and ( roleName = 2 or roleDesc = 3 ) String temp = "{\"keyword_0\":{\"selectType\":\"roleCode\",\"andOr\":\"and\",\"select\":\"ROLE-000\",\"input\":\"\",\"rule..