[Querydsl] concat 문자열합치기 :: zeroOne
728x90

view 에서 컬럼을 조인하기가 어려워서 

querydsl에서  문자열을 합치려고 해서 알아봤다.

 

.optionalAnd(fetchRequest.getGameMember(), () -> VIEW.homeTeamCount.concat("vs").concat(VIEW.awayTeamCount).eq(fetchRequest.getGameMember()))

이런식으로 concat 을 사용해서 문자열병합이 가능하다.

728x90

+ Recent posts