mapstruct this code example

Example: mapstruct.org

...<properties>    <org.mapstruct.version>1.4.2.Final</org.mapstruct.version></properties>...<dependencies>    <dependency>        <groupId>org.mapstruct</groupId>        <artifactId>mapstruct</artifactId>        <version>${org.mapstruct.version}</version>    </dependency></dependencies>...<build>    <plugins>        <plugin>            <groupId>org.apache.maven.plugins</groupId>            <artifactId>maven-compiler-plugin</artifactId>            <version>3.8.1</version>            <configuration>                <source>1.8</source> <!-- depending on your project -->                <target>1.8</target> <!-- depending on your project -->                <annotationProcessorPaths>                    <path>                        <groupId>org.mapstruct</groupId>                        <artifactId>mapstruct-processor</artifactId>                        <version>${org.mapstruct.version}</version>                    </path>                    <!-- other annotation processors -->                </annotationProcessorPaths>            </configuration>        </plugin>    </plugins></build>

Tags:

Misc Example