Esempio n. 1
0
 public Event modifyEvent(Event event) {
   event.setName(name);
   event.setDescription(description);
   event.setDefaultSport(defaultSport);
   event.setDefaultType(defaultType);
   return event;
 }
Esempio n. 2
0
  public Event createEvent() {
    Event e = new Event();

    e.setId(id);
    e.setName(name);
    e.setDescription(description);
    e.setDefaultSport(defaultSport);
    e.setDefaultType(defaultType);

    return e;
  }