在StringTemplate.create 4中有替代QueryDsl (“”)的方法吗?
在第3版中,我可以这样写:
final StringExpression createdMonthYear = StringTemplate.create("to_char(CREATED_DATETIME, 'YYYY.MM')");但自从Querydsl 4这个就没用了。
编辑:
不要紧。我找到了答案。
final StringExpression createdMonthYear = Expressions.asString("to_char(CREATED_DATETIME, 'YYYY.MM')");发布于 2017-08-12 15:50:22
正如OP发现的
final StringExpression createdMonthYear = Expressions.asString("to_char(CREATED_DATETIME,
'YYYY.MM')");https://stackoverflow.com/questions/45477419
复制相似问题