mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-27 21:01:15 +08:00
#790955 : added skipping of null values
This commit is contained in:
parent
5a6e432509
commit
3c9924546f
@ -37,7 +37,9 @@ public class ColQueryMixin<T> extends QueryMixin<T> {
|
||||
@Override
|
||||
protected Predicate[] normalize(Predicate[] conditions, boolean where) {
|
||||
for (int i = 0; i < conditions.length; i++){
|
||||
conditions[i] = normalize(conditions[i], where);
|
||||
if (conditions[i] != null) {
|
||||
conditions[i] = normalize(conditions[i], where);
|
||||
}
|
||||
}
|
||||
return conditions;
|
||||
}
|
||||
|
||||
@ -43,7 +43,9 @@ public class JDOQLQueryMixin<T> extends QueryMixin<T> {
|
||||
@Override
|
||||
protected Predicate[] normalize(Predicate[] conditions, boolean where) {
|
||||
for (int i = 0; i < conditions.length; i++){
|
||||
conditions[i] = normalize(conditions[i], where);
|
||||
if (conditions[i] != null) {
|
||||
conditions[i] = normalize(conditions[i], where);
|
||||
}
|
||||
}
|
||||
return conditions;
|
||||
}
|
||||
|
||||
@ -71,7 +71,9 @@ public class JPQLQueryMixin<T> extends QueryMixin<T> {
|
||||
@Override
|
||||
protected Predicate[] normalize(Predicate[] conditions, boolean where) {
|
||||
for (int i = 0; i < conditions.length; i++){
|
||||
conditions[i] = normalize(conditions[i], where);
|
||||
if (conditions[i] != null) {
|
||||
conditions[i] = normalize(conditions[i], where);
|
||||
}
|
||||
}
|
||||
return conditions;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user