コード例 #1
0
 private void createOfficeHours(Instructor instructor) {
   for (EventInformation eventInformation : instructor.getOfficeHours()) {
     Long eventInformationId = commonDao.getEventInformationId(eventInformation);
     if (eventInformationId == null) {
       commonDao.createEventInformation(eventInformation);
       eventInformationId = commonDao.getEventInformationId(eventInformation);
     }
     commonDao.createOfficeHours(instructor.getId(), eventInformationId);
   }
 }