package com.pollex.pam.service.mapper; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; import com.pollex.pam.domain.AppointmentMemo; import com.pollex.pam.service.dto.AppointmentMemoCreateDTO; import com.pollex.pam.service.dto.AppointmentMemoUpdateDTO; @Service public class AppointmentMemoMapper { public AppointmentMemo toAppointmentMemo(AppointmentMemoCreateDTO source) { AppointmentMemo target = new AppointmentMemo(); BeanUtils.copyProperties(source, target); return target; } public AppointmentMemo copyToAppointmentMemo(AppointmentMemoUpdateDTO source, AppointmentMemo target) { BeanUtils.copyProperties(source, target); return target; } }