I don't know what I am doing wrong here:
Date now = new Date(); List<Offer> offers; if (category == 0) offers = ofy().load().type(Offer.class).filter("end >", now).list(); else offers = ofy().load().type(Offer.class).filter("end >", now).filter("category ==", category).list();