Package jodd.db.oom

Examples of jodd.db.oom.DbOomQuery.find()


   * Finds question for given answer.
   */
  public Question findAnswersQuestion(Long answerId) {
    DbOomQuery dbOom = query(sql("select $C{q.*} from $T{Question q} join $T{Answer a} on $q.id=$a.questionId where $a.id=:answerId"));
    dbOom.setLong("answerId", answerId);
    return dbOom.find(Question.class);
  }

}
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.