Skip to content
This repository was archived by the owner on Jun 11, 2023. It is now read-only.

How it works.

Andrew edited this page Sep 27, 2017 · 1 revision

How mapping generator works

Mapping generator processing each @Mapper-annotated class individually. Generator perform next steps to create mapper implementation:

  1. Collect defined mappings. Mapping is non-void method with single parameter. Mapping should be annotated with @Mapping or @Mappings annotation.

  2. Generate mappings for dependencies. Combination of source and target types is unique identifier of generated mapping.

  3. Generate implementation of collected and generated mappings.

Clone this wiki locally