selectreplace(member0_.username, ?, ?) as col_0_0_from member member0_ limit ?selectreplace(member0_.username, 1, NULL) as col_0_0_from member member0_ limit ?;
member라는 단어를 모두 m으로 변경해서 조회한다.
소문자 변경
@SpringBootTest@TransactionalpublicclassQuerydslBasicTest { @TestvoidsqlFunction() {String result = queryFactory.select(member.username).from(member).where(member.username.eq(Expressions.stringTemplate("function('lower', {0})",member.username))).from(member).fetchFirst(); }}
select member0_.username as col_0_0_ from member member0_ where member0_.username=lower(member0_.username) limit ?select member0_.username as col_0_0_ from member member0_ where member0_.username=lower(member0_.username) limit1;
소문자 변환 등 자주 사용하는 일반적인 기능은 ANSI 표준이라서 기본적으로 내장되어 있다.