CriteriaQuery fails with
when use nullLiteral in query.
So if we have constructor like:
The query like:
Will fail with no appropriate constructor in class exception.
Test case attached
It looks like NullLiteralExpression doesn't do any magic and returns plain null:
It should make cast to appropriate type based on provided javaType.
We can manually cast to needed type, but ExpressionImpl provides as function with type check.
So to get proper null literal we should do something like:
For string null.
I've backported to 5.1 and 5.0. Can this issue be resolved now?
When are the fixed version gonna be released ?
Because this is blocking me =/
I mean 5.1.1