HHH-10843 : Fix QuerySyntaxException when use CriteriaBuilder.concat in selectCase expression

This commit is contained in:
Gail Badner 2016-06-28 13:07:08 -07:00
parent 61d73f6214
commit 5b255fa0c2
1 changed files with 2 additions and 2 deletions

View File

@ -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) {