HHH-11159 - JPA CriteriaUpdate, NnullLiteral causes IllegalArgumentException: Could not convert java type to Hibernate type

This commit is contained in:
Andrea Boriero 2016-10-07 15:20:20 +02:00 committed by Gail Badner
parent 1c1fe2a9af
commit 9e8fd60e26
1 changed files with 2 additions and 2 deletions

View File

@ -28,10 +28,10 @@ public class NullLiteralExpression<T> extends ExpressionImpl<T> implements Seria
} }
public String render(RenderingContext renderingContext) { public String render(RenderingContext renderingContext) {
return CastFunction.CAST_NAME + "( null as " + renderingContext.getCastType( getJavaType() ) + ')'; return "null";
} }
public String renderProjection(RenderingContext renderingContext) { public String renderProjection(RenderingContext renderingContext) {
return render( renderingContext ); return CastFunction.CAST_NAME + "( null as " + renderingContext.getCastType( getJavaType() ) + ')';
} }
} }