I have a Product pojo with online and offline date
i use the following query to get all the Products where either online
date is Null
or either offline
date is Null
. But the following query only returns me when both online and offline date are null
.
query.addCriteria(Criteria.where(Product.IS).is(is).andOperator( Criteria.where(Product.OFFLINE_DATE).is(null).orOperator(Criteria.where(Product.ONLINE_DATE).is(null))));
Any clues ?