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

Add AirportMapper

parent 975ac11e
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.Airport;
import cz.muni.fi.pa165.core.model.AirportDto;
import cz.muni.fi.pa165.core.model.NewAirportDtoRequest;
import org.mapstruct.Mapper;
@Mapper(componentModel = "spring")
public interface AirportMapper {
Airport toEntity(AirportDto airportDto);
Airport toEntityFromNewRequest(NewAirportDtoRequest newAirportDtoRequest);
AirportDto toDto(Airport airport);
}
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