示例#1
0
 public Event modifyEvent(Event event) {
   event.setName(name);
   event.setDescription(description);
   event.setDefaultSport(defaultSport);
   event.setDefaultType(defaultType);
   return event;
 }
示例#2
0
 public EventDTO(Event e) {
   id = e.getId();
   name = e.getName();
   description = e.getDescription();
   defaultSport = e.getDefaultSport();
   defaultType = e.getDefaultType();
 }
示例#3
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;
  }