@Override public void eventResize(final EventResize event) { final ScoutCalEvent calendarEvent = (ScoutCalEvent) event.getCalendarEvent(); Event eventEntity = calendarEvent.getEntity(); final Date newEndTime = event.getNewEnd(); final Date newStartTime = event.getNewStart(); eventEntity.setEventEndDateTime(newEndTime); eventEntity.setEventStartDateTime(newStartTime); try { final EventDao daoEvent = new DaoFactory().getEventDao(); eventEntity = daoEvent.merge(eventEntity); calendarEvent.eventEntity = eventEntity; eventChange(new EventChangeEvent(calendarEvent)); } catch (final Exception e) { this.logger.error(e, e); SMNotification.show(e, Type.ERROR_MESSAGE); } }