Ejemplo n.º 1
0
  public static Event createEvent() {
    Event event = new Event();

    event.setDateCreated(new Date());
    event.setDescription(randomString("description", 2000));
    event.setCategory(randomString("category", 50));

    return event;
  }
Ejemplo n.º 2
0
  public static void modifyRecord(Event event) {

    event.setDateCreated(new Date());
    event.setDescription(randomString("description", 2000));
    event.setCategory(randomString("category", 50));
  }