Package com.gwtmobile.persistence.test.domain

Examples of com.gwtmobile.persistence.test.domain.Task


            final Category c = categoryEntity.newInstance();
            c.setName("Main");
            final Tag tag = tagEntity.newInstance();
            tag.setName("Urgent");
            for (int i = 0; i < 5; i++) {
              Task t = taskEntity.newInstance();
              t.setName("Task" + Integer.toString(i));
              t.setDescription("Task No #" + Integer.toString(i));
              if (i % 2 == 0) {
                t.setDone(true);
                t.setCompleteDate(new Date(2010 - 1900, 12 - 1, 1 + i));
                t.setPriority(i);
                t.setPercentage((float)i / 10);
                t.setProfit((double)i * 12.34);
                t.setAlphabet((char) ('A' + i));
                t.setJson((JSONObject) JSONParser.parse("{\"symbol\": \"ABC\", \"price\": 96.204659543522}"));
              }
              t.setCategory(c);
              t.getTags().add(tag);
            }
            Persistence.flush(callback);
          }
        });
      }
View Full Code Here

TOP

Related Classes of com.gwtmobile.persistence.test.domain.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.