Note that mongodb doesn't support an $or operator to be wrapped in a $not operator.
@throws IllegalArgumentException if {@link #orOperator(Criteria)} follows a not() call directly. @param criteria
130131132133134135136137138139140
*/ @Override protected Criteria or(Criteria base, Criteria criteria) { Criteria result = new Criteria(); return result.orOperator(base, criteria); } /* * (non-Javadoc) * @see org.springframework.data.repository.query.parser.AbstractQueryCreator#complete(java.lang.Object, org.springframework.data.domain.Sort)