private void createMeetingHours(Course course) { for (EventInformation eventInformation : course.getMeetingHours()) { Long eventInformationId = commonDao.getEventInformationId(eventInformation); if (eventInformationId == null) { commonDao.createEventInformation(eventInformation); eventInformationId = commonDao.getEventInformationId(eventInformation); } commonDao.createMeetingHours(course.getId(), eventInformationId); } }