class OpenHoursServiceImpl implements OpenHoursService {

    @Override
    public OpeningHours update(Long id, OpeningHours updatedHours) {
        log.info(LogMessage.IN_UPDATE);

        OpeningHours updatable = findById(id);

        updatable.setOpenTime(updatedHours.getOpenTime());
        updatable.setCloseTime(updatedHours.getCloseTime());
        updatable.setWeekDay(updatedHours.getWeekDay());
        updatable.setPlace(updatedHours.getPlace());

        return hoursRepo.save(updatable);
    }

}