HHH-10843 : Fix QuerySyntaxException when use CriteriaBuilder.concat in selectCase expression
This commit is contained in:
parent
61d73f6214
commit
5b255fa0c2
|
@ -64,9 +64,9 @@ public class ConcatExpression extends ExpressionImpl<String> implements Serializ
|
|||
}
|
||||
|
||||
public String render(RenderingContext renderingContext) {
|
||||
return ( (Renderable) getString1() ).render( renderingContext )
|
||||
return '(' + ((Renderable) getString1() ).render( renderingContext )
|
||||
+ " || "
|
||||
+ ( (Renderable) getString2() ).render( renderingContext );
|
||||
+ ( (Renderable) getString2() ).render( renderingContext ) + ')' ;
|
||||
}
|
||||
|
||||
public String renderProjection(RenderingContext renderingContext) {
|
||||
|
|
Loading…
Reference in New Issue