/mapstruct-inheritance-example

Example for mapping inheritance using mapstruct

Primary LanguageJavaApache License 2.0Apache-2.0

mapstruct-inheritance-example

This mapstruct example shows, how to implement a mapping from a model with a type hierarchy using Mapstruct @InheritConfiguration on MapperConfigs.

Please check the mapstruct documentation.

Getting started

  • compile the application by run mvn clean install
  • starting the application in your IDE using the main class de.bitgrip.mapstruct.example.Application.java
  • starting the application with the builded jar using bash: java -jar target/complex-example-1.0-SNAPSHOT-jar-with-dependencies.jar

Prerequisites

  • maven 3
  • access to public repositories