@Override public Ticket update(Ticket ticket) { jdbcTemplateObject.update( UPDATE_TICKET, categories.get(ticket.getCategory()), ticket.getEventId(), ticket.getPlace(), ticket.getUserId(), ticket.getId()); return ticket; }
@Override public boolean delete(Ticket ticket) { return deleteById(ticket.getId()); }