Ejemplo n.º 1
0
 public static List<TaskAssignRel> getMyTaskRels(Date date) {
   User us = Users.getUser();
   return TaskAssignRel.find(
           "user.id=?1 and task.completedPercent<?2 and"
               + " task.startDate<=?3 and task.finishDate>?4 order by task.startDate",
           us.id,
           100F,
           date,
           date)
       .fetch();
 }
Ejemplo n.º 2
0
 public static List<TaskAssignRel> getMyTaskRels() {
   User us = Users.getUser();
   return TaskAssignRel.find(
           "user.id=?1 and task.completedPercent<?2 order by task.startDate", us.id, 100F)
       .fetch();
 }