Package org.mapstruct

MapStruct is a code generator which simplifies the implementation of mappings between Java bean types by generating mapping code at compile time, following a convention-over-configuration approach.

See: Description

  • Enum Summary 
    EnumDescription
    CollectionMappingStrategy
    Strategy for propagating the value of collection-typed properties from source to target.
    MappingInheritanceStrategy
    Strategy for inheriting configurations given for methods of prototype mapping methods (declared on mapper config classes) to actual mapping methods declared on mappers referring to such config class via Mapper.config().
    NullValueMappingStrategy
    Strategy for dealing with null values passed to mapping methods.
    ReportingPolicy
    Policy for reporting issues occurring during the generation of a mapper implementation.
  • Annotation Types Summary 
    Annotation TypeDescription
    AfterMapping
    Marks a method to be invoked at the end of a generated mapping method, right before the last return statement of the mapping method.
    BeanMapping
    Configures the mapping between two bean types.
    BeforeMapping
    Marks a method to be invoked at the beginning of a generated mapping method.
    DecoratedWith
    Specifies a decorator to be applied to a generated mapper, which e.g.
    InheritConfiguration
    Advises the code generator to apply the configuration (as given via Mapping, IterableMapping etc.) from another mapping method (declared on the same mapper type) or prototype method (declared on a mapper config class referenced via Mapper.config()) to the annotated method as well.
    InheritInverseConfiguration
    Advises the code generator to apply all the Mappings from an inverse mapping method to the annotated method as well.
    IterableMapping
    Configures the mapping between two iterable types, e.g.
    MapMapping
    Configures the mapping between two map types, e.g.
    Mapper
    Marks an interface or abstract class as a mapper and activates the generation of a implementation of that type via MapStruct.
    MapperConfig
    Marks a class or interface as configuration source for generated mappers.
    Mapping
    Configures the mapping of one bean attribute or enum constant.
    Mappings
    Configures the mappings of several bean attributes.
    MappingTarget
    Declares a parameter of a mapping method to be the target of the mapping.
    Qualifier
    Declares an annotation type to be a qualifier.
    TargetType
    Declares a parameter of a custom mapping method to be populated with the target type of the mapping.

Package org.mapstruct Description

MapStruct is a code generator which simplifies the implementation of mappings between Java bean types by generating mapping code at compile time, following a convention-over-configuration approach. The generated code uses plain method invocations and thus is fast and type-safe.

This package contains several annotations which allow to configure how mapper interfaces are generated.

See Also:
MapStruct reference documentation

Copyright © 2012–2015. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14