package com.pollex.pam.service.mapper; import com.pollex.pam.domain.Customer; import com.pollex.pam.service.dto.CustomerDTO; import org.springframework.stereotype.Service; @Service public class CustomerMapper { public CustomerDTO toDto(Customer customer) { CustomerDTO dto = new CustomerDTO(); dto.setEmail(customer.getEmail()); dto.setPhone(customer.getPhone()); dto.setName(customer.getName()); return dto; } }