@Transactional(readOnly = true) private BaseCalendar getFromDB(Long id) { try { BaseCalendar result = baseCalendarDAO.find(id); return result; } catch (InstanceNotFoundException e) { throw new RuntimeException(e); } }
@Override @Transactional(readOnly = true) public void setParent(BaseCalendar parent) { try { parent = baseCalendarDAO.find(parent.getId()); } catch (InstanceNotFoundException e) { throw new RuntimeException(e); } forceLoad(parent); if (getBaseCalendar() != null) { getBaseCalendar().setParent(parent, selectedDate); } }