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:
parent
d0afd39d65
commit
be2634259f
|
@ -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