Extends RSQL standalone tests (#2431)
* add more complex filters (and / or) * add tests for legacy specification builders (visitors) in order to clearly check backward compatibility Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -563,7 +563,11 @@ public class JpaQueryRsqlVisitor<A extends Enum<A> & RsqlQueryField, T> extends
|
||||
}
|
||||
|
||||
private Expression<String> caseWise(final CriteriaBuilder cb, final Expression<String> expression) {
|
||||
return ensureIgnoreCase ? cb.upper(expression) : expression;
|
||||
if (expression instanceof Path<String> path && path.getJavaType() != String.class) {
|
||||
return expression; // non string values doesn't support uppercase
|
||||
} else {
|
||||
return ensureIgnoreCase ? cb.upper(expression) : expression;
|
||||
}
|
||||
}
|
||||
|
||||
private String caseWise(final String str) {
|
||||
|
||||
Reference in New Issue
Block a user