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