示例#1
0
文件: Job.java 项目: eguller/mujobo
 public static List<Job> findJobsByValidLocation() {
   return Job.find("byLocationValid", true).fetch();
 }
示例#2
0
文件: Job.java 项目: eguller/mujobo
 public static List<Job> findMissingCoordinatesByCompany(Company company) {
   return Job.find("latitude < 0 and longitude < 0 and company=?1", company).fetch();
 }
示例#3
0
文件: Job.java 项目: eguller/mujobo
 public static List<Job> findByCompany(Company company) {
   return Job.find("byCompany", company).fetch();
 }
示例#4
0
文件: Job.java 项目: eguller/mujobo
 public static List<Job> findByJobKey(List<String> jobKeyList) {
   return Job.find("key in (:jobkeys)").bind("jobkeys", jobKeyList).fetch();
 }
示例#5
0
文件: Job.java 项目: eguller/mujobo
 public static Job byId(long id) {
   return Job.find("byId", id).first();
 }
示例#6
0
文件: Job.java 项目: eguller/mujobo
 public static Job findByJobKey(String key) {
   return Job.find("byKey", key).first();
 }