Forward port fix
This commit is contained in:
parent
fe763dd2d6
commit
a0366befc4
|
@ -142,7 +142,7 @@ public class DatePredicateBuilder extends BaseSearchParamPredicateBuilder {
|
||||||
} else if (upperBoundInstant != null) {
|
} else if (upperBoundInstant != null) {
|
||||||
ub = theFrom.createPredicate(lowValueField, ParamPrefixEnum.LESSTHAN_OR_EQUALS, genericUpperBound);
|
ub = theFrom.createPredicate(lowValueField, ParamPrefixEnum.LESSTHAN_OR_EQUALS, genericUpperBound);
|
||||||
if (myDaoConfig.isAccountForDateIndexNulls()) {
|
if (myDaoConfig.isAccountForDateIndexNulls()) {
|
||||||
ub = ComboCondition.or(ub, theFrom.createPredicate(highValueField, ParamPrefixEnum.LESSTHAN_OR_EQUALS, genericLowerBound));
|
ub = ComboCondition.or(ub, theFrom.createPredicate(highValueField, ParamPrefixEnum.LESSTHAN_OR_EQUALS, genericUpperBound));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throw new InvalidRequestException("lowerBound and upperBound value not correctly specified for comparing " + theOperation);
|
throw new InvalidRequestException("lowerBound and upperBound value not correctly specified for comparing " + theOperation);
|
||||||
|
@ -152,7 +152,7 @@ public class DatePredicateBuilder extends BaseSearchParamPredicateBuilder {
|
||||||
if (upperBoundInstant != null) {
|
if (upperBoundInstant != null) {
|
||||||
ub = theFrom.createPredicate(highValueField, ParamPrefixEnum.GREATERTHAN_OR_EQUALS, genericUpperBound);
|
ub = theFrom.createPredicate(highValueField, ParamPrefixEnum.GREATERTHAN_OR_EQUALS, genericUpperBound);
|
||||||
if (myDaoConfig.isAccountForDateIndexNulls()) {
|
if (myDaoConfig.isAccountForDateIndexNulls()) {
|
||||||
ub = ComboCondition.or(ub, theFrom.createPredicate(lowValueField, ParamPrefixEnum.GREATERTHAN_OR_EQUALS, genericLowerBound));
|
ub = ComboCondition.or(ub, theFrom.createPredicate(lowValueField, ParamPrefixEnum.GREATERTHAN_OR_EQUALS, genericUpperBound));
|
||||||
}
|
}
|
||||||
} else if (lowerBoundInstant != null) {
|
} else if (lowerBoundInstant != null) {
|
||||||
lb = theFrom.createPredicate(highValueField, ParamPrefixEnum.GREATERTHAN_OR_EQUALS, genericLowerBound);
|
lb = theFrom.createPredicate(highValueField, ParamPrefixEnum.GREATERTHAN_OR_EQUALS, genericLowerBound);
|
||||||
|
|
Loading…
Reference in New Issue