package com.guwan.mapstruct;


import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring")
public interface SimpleSourceDestinationMapper {

    @Mapping(target = "nameGu", source = "source.nameHu")
    SimpleDestination sourceToDestination(SimpleSource source);
    @Mapping(target = "nameHu", source = "destination.nameGu")
    SimpleSource destinationToSource(SimpleDestination destination);
}
