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