} else {
// (adid = A And tifa between x and y) or (adid = D And tifd between
// x and y)
Predicate p = cb.and(cb.or(cb.and(
cb.equal(root.get("adid"), HpEKConstants.ADID_A),
cb.between(root.<String> get("tifa"),
ufisCalendarFrom.getCedaString(),
ufisCalendarTo.getCedaString())), cb.and(
cb.equal(root.get("adid"), HpEKConstants.ADID_D),
cb.between(root.<String> get("tifd"),
ufisCalendarFrom.getCedaString(),