HHH-11159 - JPA CriteriaUpdate, NnullLiteral causes IllegalArgumentException: Could not convert java type to Hibernate type
This commit is contained in:
parent
1c1fe2a9af
commit
9e8fd60e26
|
@ -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() ) + ')';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue