コード例 #1
0
  public static void getNexts() {

    List<Creativo> creativos = Creativo.find("rank = 0").fetch();
    List<Business> business = Business.find("rank = 0").fetch();

    render(creativos, business);
  }
コード例 #2
0
  public static void getRank() {
    List<Creativo> creativos = Creativo.find("rank <> 0 order by rank desc").fetch();
    List<Business> business = Business.find("rank <> 0 order by rank desc").fetch();

    render(creativos, business);
  }