@Target(value=TYPE) @Inherited public @interface Mapper
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
ignoreMissingProperties
Deprecated.
since 0.10, please use withIgnoreMissing instead.
|
boolean |
ignoreNotSupported
Wether compilation should fail when Selma finds a situation where it can not generate mapping code.
|
CollectionMappingStrategy |
withCollectionStrategy
By default Selma uses a setter to provide new mapped collections.
|
Class<?>[] |
withCustom
Add a list of custom mapper class.
|
Field[] |
withCustomFields
This is used to describe specific field to field mapping.
|
boolean |
withCyclicMapping
Instance cache is used to handle circular references in objects mapped by Selma
|
EnumMapper[] |
withEnums
Add one or more custom configuration for enum to enum mapping with default values.
|
Class<?>[] |
withFactories
Add one or more class which should be used to create instances of the beans Selma will map.
|
boolean |
withFinalMappers
This allows to disable use of *final* modifier for generated mappers classes
|
String[] |
withIgnoreFields
This is used to describe fields to be ignored in the generated mapping methods.
|
IgnoreMissing |
withIgnoreMissing
How should selma processor handle properties not referenced in both bean.
|
boolean |
withIgnoreNullValue
This is used to not copy field with a null value
|
Class<?>[] |
withImmutables
This is used to declare custom immutable types.
|
String[] |
withImmutablesPackages
This is used to declare custom immutable types.
|
IoC |
withIoC
Defines the dependency injection model to be used.
|
String |
withIoCServiceName
Define the name of the service that will be used with the Spring annotations.
|
Class<?>[] |
withSources
Add one or more class for which instance should be passed to the out bean constructor.
|
@Deprecated public abstract boolean ignoreMissingProperties
public abstract IgnoreMissing withIgnoreMissing
public abstract boolean ignoreNotSupported
public abstract Class<?>[] withCustom
public abstract Class<?>[] withSources
public abstract Class<?>[] withFactories
public abstract EnumMapper[] withEnums
public abstract boolean withFinalMappers
public abstract Class<?>[] withImmutables
public abstract String[] withImmutablesPackages
public abstract String[] withIgnoreFields
public abstract boolean withIgnoreNullValue
public abstract Field[] withCustomFields
public abstract IoC withIoC
public abstract String withIoCServiceName
public abstract CollectionMappingStrategy withCollectionStrategy
public abstract boolean withCyclicMapping
Copyright © 2016. All Rights Reserved.