BAEL-4641: Use MapStruct 1.3.1.Final (#10088)

This commit is contained in:
kwoyke 2020-09-25 13:17:43 +02:00 committed by GitHub
parent d100adc9c5
commit 68272ef58f
3 changed files with 5 additions and 2 deletions

View File

@ -71,7 +71,7 @@
</build>
<properties>
<org.mapstruct.version>1.4.0.Beta1</org.mapstruct.version>
<org.mapstruct.version>1.3.1.Final</org.mapstruct.version>
<springframework.version>4.3.4.RELEASE</springframework.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>

View File

@ -5,7 +5,8 @@ import com.baeldung.mapstruct.mappingCollections.model.Company;
import org.mapstruct.CollectionMappingStrategy;
import org.mapstruct.Mapper;
@Mapper(collectionMappingStrategy = CollectionMappingStrategy.ADDER_PREFERRED)
@Mapper(collectionMappingStrategy = CollectionMappingStrategy.ADDER_PREFERRED,
uses = EmployeeMapper.class)
public interface CompanyMapperAdderPreferred {
CompanyDTO map(Company company);

View File

@ -11,6 +11,8 @@ import java.util.Set;
@Mapper
public interface EmployeeMapper {
EmployeeDTO map(Employee employee);
List<EmployeeDTO> map(List<Employee> employees);
Set<EmployeeDTO> map(Set<Employee> employees);