Skip to content
Snippets Groups Projects
Verified Commit 5aba44b1 authored by Adam Krídl's avatar Adam Krídl
Browse files

Add CityMapper

parent 4fc989f4
No related branches found
No related tags found
No related merge requests found
package cz.muni.fi.pa165.core.mapper;
import cz.muni.fi.pa165.core.data.domain.City;
import cz.muni.fi.pa165.core.model.CityDto;
import cz.muni.fi.pa165.core.model.NewCityDtoRequest;
import org.mapstruct.Mapper;
@Mapper(componentModel = "spring")
public interface CityMapper {
City toEntity(CityDto cityDto);
City toEntityFromNewRequest(NewCityDtoRequest newCityDtoRequest);
CityDto toDto(City city);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment