Exemple #1
0
 public static List<Posting> findRecentlyCreatedByDaysAgo(Project project, int days) {
   return Posting.finder
       .where()
       .eq("project.id", project.id)
       .ge("createdDate", JodaDateUtil.before(days))
       .order()
       .desc("createdDate")
       .findList();
 }
Exemple #2
0
 public static List<PullRequest> findOpendPullRequestsByDaysAgo(Project project, int days) {
   return finder
       .where()
       .eq("toProject", project)
       .eq("state", State.OPEN)
       .ge("created", JodaDateUtil.before(days))
       .order()
       .desc("created")
       .findList();
 }