protected void add(long hrOfficeId, long hrHolidayId) throws SystemException {
      if (!_persistenceImpl.containsHRHoliday.contains(hrOfficeId, hrHolidayId)) {
        ModelListener<com.liferay.hr.model.HRHoliday>[] hrHolidayListeners =
            hrHolidayPersistence.getListeners();

        for (ModelListener<HROffice> listener : listeners) {
          listener.onBeforeAddAssociation(
              hrOfficeId, com.liferay.hr.model.HRHoliday.class.getName(), hrHolidayId);
        }

        for (ModelListener<com.liferay.hr.model.HRHoliday> listener : hrHolidayListeners) {
          listener.onBeforeAddAssociation(hrHolidayId, HROffice.class.getName(), hrOfficeId);
        }

        _sqlUpdate.update(new Object[] {new Long(hrOfficeId), new Long(hrHolidayId)});

        for (ModelListener<HROffice> listener : listeners) {
          listener.onAfterAddAssociation(
              hrOfficeId, com.liferay.hr.model.HRHoliday.class.getName(), hrHolidayId);
        }

        for (ModelListener<com.liferay.hr.model.HRHoliday> listener : hrHolidayListeners) {
          listener.onAfterAddAssociation(hrHolidayId, HROffice.class.getName(), hrOfficeId);
        }
      }
    }