Beispiel #1
0
 @Transactional(readOnly = true)
 private BaseCalendar getFromDB(Long id) {
     try {
         BaseCalendar result = baseCalendarDAO.find(id);
         return result;
     } catch (InstanceNotFoundException e) {
         throw new RuntimeException(e);
     }
 }
Beispiel #2
0
    @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);
        }
    }