public Event modifyEvent(Event event) { event.setName(name); event.setDescription(description); event.setDefaultSport(defaultSport); event.setDefaultType(defaultType); return event; }
public EventDTO(Event e) { id = e.getId(); name = e.getName(); description = e.getDescription(); defaultSport = e.getDefaultSport(); defaultType = e.getDefaultType(); }
public Event createEvent() { Event e = new Event(); e.setId(id); e.setName(name); e.setDescription(description); e.setDefaultSport(defaultSport); e.setDefaultType(defaultType); return e; }