package com.pollex.pam.service.mapper; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; import com.pollex.pam.domain.Appointment; import com.pollex.pam.enums.ContactStatusEnum; import com.pollex.pam.service.dto.AppointmentCreateDTO; @Service public class AppointmentDTOMapper { public Appointment toAppointment(AppointmentCreateDTO source) { Appointment target = new Appointment(); BeanUtils.copyProperties(source, target); return target; } }