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:
561 bytes
|
| Rev | Line | |
|---|
| [700e2f9] | 1 | package com.finki.icare.mapper;
|
|---|
| 2 |
|
|---|
| 3 | import com.finki.icare.dto.DiaryEntryDTO;
|
|---|
| 4 | import com.finki.icare.model.Diary;
|
|---|
| 5 | import org.mapstruct.Mapper;
|
|---|
| 6 | import org.mapstruct.Mapping;
|
|---|
| 7 | import org.mapstruct.MappingConstants;
|
|---|
| 8 |
|
|---|
| 9 | @Mapper(componentModel = MappingConstants.ComponentModel.SPRING)
|
|---|
| 10 | public 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.