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

(cherry picked from commit 9e8fd60e26)
This commit is contained in:
Andrea Boriero 2016-10-07 15:20:20 +02:00 committed by Gail Badner
parent d0afd39d65
commit be2634259f
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) {
return CastFunction.CAST_NAME + "( null as " + renderingContext.getCastType( getJavaType() ) + ')';
return "null";
}
public String renderProjection(RenderingContext renderingContext) {
return render( renderingContext );
return CastFunction.CAST_NAME + "( null as " + renderingContext.getCastType( getJavaType() ) + ')';
}
}