source: backend/src/main/java/com/finki/icare/mapper/DiaryMapper.java@ 700e2f9

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

Init

  • Property mode set to 100644
File size: 561 bytes
Line 
1package com.finki.icare.mapper;
2
3import com.finki.icare.dto.DiaryEntryDTO;
4import com.finki.icare.model.Diary;
5import org.mapstruct.Mapper;
6import org.mapstruct.Mapping;
7import org.mapstruct.MappingConstants;
8
9@Mapper(componentModel = MappingConstants.ComponentModel.SPRING)
10public interface DiaryMapper {
11
12 @Mapping(target = "idDiary", source = "idDiary")
13 @Mapping(target = "date", source = "date")
14 @Mapping(target = "dailyRating", source = "dailyRating")
15 @Mapping(target = "content", source = "content")
16 DiaryEntryDTO toDTO(Diary diary);
17}
Note: See TracBrowser for help on using the repository browser.