hkemal / mapstruct-inheritance-example

Example for mapping inheritance using mapstruct

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Example for mapping inheritance using mapstruct

License:Apache License 2.0


Languages

Language:Java 100.0%