Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roamingthings/workbench-mapstruct
A Workbench to tinker with MapStruct especially mapping inheritance structures.
https://github.com/roamingthings/workbench-mapstruct
demo workbench
Last synced: about 2 months ago
JSON representation
A Workbench to tinker with MapStruct especially mapping inheritance structures.
- Host: GitHub
- URL: https://github.com/roamingthings/workbench-mapstruct
- Owner: roamingthings
- License: apache-2.0
- Created: 2020-02-08T10:43:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-08T10:44:11.000Z (almost 5 years ago)
- Last Synced: 2024-12-09T14:18:50.953Z (about 2 months ago)
- Topics: demo, workbench
- Language: Java
- Size: 59.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# MapStruct workbench
A Workbench to tinker with MapStruct especially mapping inheritance structures.
In this example the class `VehicleModel` which contains an abstract property `vehicle`
should be mapped to a `VehicleModelTarget` which itself contains an abstract
property `vehicle`. Source and target inheritance structure are equal but with their
own classes.The `VehicleMapper` shows how the actual mapping of the abstract class can
be done either by calling a mapping method in the same mapper or a separate
mapper.## Running
You can see the mapping in action by running the tests:
```
./gradlew clean test
```