source: backend/src/main/java/com/finki/icare/mapper/PatientMapper.java

main
Last change on this file was 700e2f9, checked in by 186079 <matej.milevski@…>, 5 days ago

Init

  • Property mode set to 100644
File size: 555 bytes
RevLine 
[700e2f9]1package com.finki.icare.mapper;
2
3import com.finki.icare.dto.PatientDTO;
4import com.finki.icare.model.Patient;
5import org.mapstruct.Mapper;
6import org.mapstruct.Mapping;
7import org.mapstruct.MappingConstants;
8
9@Mapper(componentModel = MappingConstants.ComponentModel.SPRING)
10public interface PatientMapper {
11
12 @Mapping(target = "userId", source = "idUser")
13 @Mapping(target = "firstName", source = "name")
14 @Mapping(target = "lastName", source = "surname")
15 @Mapping(target = "email", source = "email")
16 PatientDTO toDTO(Patient patient);
17}
Note: See TracBrowser for help on using the repository browser.