BAEL-4641: Use MapStruct 1.3.1.Final (#10088)
This commit is contained in:
parent
d100adc9c5
commit
68272ef58f
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue