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

(cherry picked from commit 5b255fa0c2)
This commit is contained in:
Gail Badner 2016-06-28 13:07:08 -07:00
parent ec8aa4ecc3
commit a3da71e5f8
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) {