Package org.nutz.mongo.util

Examples of org.nutz.mongo.util.Moo.push()


    answer.setUpdatedAt(new Date());
    dao.runNoError(new Callback<DB>() {
      public void invoke(DB db) {
        dao.save(answer);
        Moo moo = Moo.NEW();
        moo.push("answers", new DBRef(db, "answer", new ObjectId(answer.getId())));
        dao.update(Question.class, Moo.NEW("id", questionId), moo);
      }
    });
    commons.fresh(Question.class, questionId);
    return Ajax.ok();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.