Mapping immutable types

You can create objects when constructor is not available, or when there is no no-args constructor in the class. Feature is designed for mapping immutable types. To use it, at the mapping level add an option to skip the constructor, then at the field level choose to inject the value directly to the field, skipping the setter.

    <class-b skip-constructor="true">com.github.dozermapper.core.vo.ImmutableModelClass</class-b>
        <b is-accessible="true">ourFinalField</b>

results matching ""

    No results matching ""