Skip to content

Commit

Permalink
BAEL-4641: Use MapStruct 1.3.1.Final (eugenp#10088)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwoyke authored Sep 25, 2020
1 parent 38f35c4 commit d944626
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mapstruct/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
@Mapper
public interface EmployeeMapper {

EmployeeDTO map(Employee employee);

List<EmployeeDTO> map(List<Employee> employees);

Set<EmployeeDTO> map(Set<Employee> employees);
Expand Down

0 comments on commit d944626

Please sign in to comment.