Пример #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;
 }
Пример #2
0
 public static Task create(Task task, Long project, String folder) {
   task.project = Project.find.ref(project);
   task.folder = folder;
   task.save();
   return task;
 }