Skip to content

Commit be93da3

Browse files
committed
refactor: 1.0.1
1 parent 902ad6e commit be93da3

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

README-zh.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class Car {
3131

3232
<properties>
3333
<org.mapstruct.version>1.4.2.Final</org.mapstruct.version>
34-
<io.github.zhaord.version>1.0.0.RELEASE</io.github.zhaord.version>
34+
<io.github.zhaord.version>1.0.1.RELEASE</io.github.zhaord.version>
3535
</properties>
3636
...
3737
<dependencies>
@@ -83,13 +83,13 @@ public class Car {
8383
dependencies {
8484
...
8585
compile 'org.mapstruct:mapstruct:1.4.2.Final'
86-
compile 'io.github.zhaord:mapstruct-spring-plus-boot-starter:1.0.0.RELEASE'
86+
compile 'io.github.zhaord:mapstruct-spring-plus-boot-starter:1.0.1.RELEASE'
8787
8888
annotationProcessor 'org.mapstruct:mapstruct-processor:1.4.2.Final'
8989
testAnnotationProcessor 'org.mapstruct:mapstruct-processor:1.4.2.Final' // if you are using mapstruct in test code
9090
91-
annotationProcessor 'io.github.zhaord:mapstruct-spring-plus-processor:1.0.0.RELEASE'
92-
testAnnotationProcessor 'io.github.zhaord:mapstruct-spring-plus-processor:1.0.0.RELEASE' // if you are using mapstruct in test code
91+
annotationProcessor 'io.github.zhaord:mapstruct-spring-plus-processor:1.0.1.RELEASE'
92+
testAnnotationProcessor 'io.github.zhaord:mapstruct-spring-plus-processor:1.0.1.RELEASE' // if you are using mapstruct in test code
9393
...
9494
}
9595
```

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ For maven projects, use the following POM file
3131

3232
<properties>
3333
<org.mapstruct.version>1.4.2.Final</org.mapstruct.version>
34-
<io.github.zhaord.version>1.0.0.RELEASE</io.github.zhaord.version>
34+
<io.github.zhaord.version>1.0.1.RELEASE</io.github.zhaord.version>
3535
</properties>
3636
...
3737
<dependencies>
@@ -83,13 +83,13 @@ For Gradle projects, use the following configuration
8383
dependencies {
8484
...
8585
compile 'org.mapstruct:mapstruct:1.4.2.Final'
86-
compile 'io.github.zhaord:mapstruct-spring-plus-boot-starter:1.0.0.RELEASE'
86+
compile 'io.github.zhaord:mapstruct-spring-plus-boot-starter:1.0.1.RELEASE'
8787
8888
annotationProcessor 'org.mapstruct:mapstruct-processor:1.4.2.Final'
8989
testAnnotationProcessor 'org.mapstruct:mapstruct-processor:1.4.2.Final' // if you are using mapstruct in test code
9090
91-
annotationProcessor 'io.github.zhaord:mapstruct-spring-plus-processor:1.0.0.RELEASE'
92-
testAnnotationProcessor 'io.github.zhaord:mapstruct-spring-plus-processor:1.0.0.RELEASE' // if you are using mapstruct in test code
91+
annotationProcessor 'io.github.zhaord:mapstruct-spring-plus-processor:1.0.1.RELEASE'
92+
testAnnotationProcessor 'io.github.zhaord:mapstruct-spring-plus-processor:1.0.1.RELEASE' // if you are using mapstruct in test code
9393
...
9494
}
9595
```
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
11
package io.github.zhaord.mapstruct.plus.basemapper;
22

3+
import org.mapstruct.InheritInverseConfiguration;
34
import org.mapstruct.Mapper;
5+
import org.mapstruct.MappingTarget;
6+
import org.mapstruct.TargetType;
47

58
@Mapper(componentModel = "spring")
69
public interface CarDtoMapper{
710
Car dtoToEntity(CarDto dto);
11+
12+
@InheritInverseConfiguration(name = "dtoToEntity")
13+
CarDto entityToDto(Car dto);
14+
15+
Car dtoMapToEntity(CarDto dto, @MappingTarget Car car);
16+
17+
CarDto entityMapToDto(Car dto, @MappingTarget CarDto car);
818
}

0 commit comments

Comments
 (0)