Exemplo n.º 1
0
 /** Create a task */
 public static Task create(Integer project, String folder, String title) {
   Task task = new Task();
   task.project = Project.find.ref(project);
   task.folder = folder;
   task.title = title;
   task.save();
   return task;
 }
Exemplo n.º 2
0
 @Override
 public boolean equals(Object o) {
   if (o == null || !(o instanceof Task)) return false;
   Task task2 = (Task) o;
   return id.equals(task2.getId());
 }
Exemplo n.º 3
0
 public static Task create(Task task, Long project, String folder) {
   task.project = Project.find.ref(project);
   task.folder = folder;
   task.save();
   return task;
 }