oh, get it , in(),nin() need an array argument, where("age").in(l.toArray()) is working correctly
Type: Posts; User: afriday; Keyword(s):
oh, get it , in(),nin() need an array argument, where("age").in(l.toArray()) is working correctly
i want to do $ne operation, but i have not found a criteria match it.
and the in ,nin seems working incorrectly, i insert 4 persons
Person p1 = new Person("Bob", 33);
mongoTemplate.insert(p1);...
the first one (push a pojo) seems a bug of mongo java driver, and i convert my pojo to a DBObject for resolve the problem.
the second one is not a bug(but not friendly enough), i write the query...
at last testcase, i want to increase Bob's balance only, so i modified the query from
WriteResult wr = mongoTemplate.updateMulti(
new...
I just clone http://github.com/SpringSource/spring-data-document-examples.git.
I want to test push a pojo to a collection, so i modified a testcase in SimpleMongoTest in...