コード例 #1
0
ファイル: Answer.java プロジェクト: thenrion/easypolling
 /**
  * retrieve all answers corresponding to the given poll
  *
  * @param poll a Poll
  * @return a Collection of Answer
  */
 public static List<Answer> findAnswersOfPoll(Poll poll) {
   return Answer.find("poll = ? and selected = ?", poll, Boolean.TRUE).fetch();
 }
コード例 #2
0
ファイル: User.java プロジェクト: ese-unibe-ch/ese2010-team1
 /**
  * Gets the answers.
  *
  * @return the answers
  */
 public List<Entry> getAnswers() {
   return Answer.find("owner like ? order by timestamp desc", this).fetch();
 }