Package org.prevayler.demos.jxpath.model

Examples of org.prevayler.demos.jxpath.model.Task


      String projectId)
      throws Exception {
    System.out.println(
        "Adding task '" + id + "' to project '" + projectId + "'...");

    Task t = new Task();
    t.setId(Integer.parseInt(id));
    t.setName(name);
    t.setStart(SimpleDateFormat.getInstance().parse(start));
    t.setEnd(SimpleDateFormat.getInstance().parse(end));
    System.out.println("Start: " + t.getStart());
    System.out.println("End:   " + t.getEnd());

    AddTask cmd = new AddTask();
    cmd.setTask(t);
    cmd.setProjectId(Integer.parseInt(projectId));
    prevayler.execute(cmd);
View Full Code Here

TOP

Related Classes of org.prevayler.demos.jxpath.model.Task

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.