@Target(value=METHOD) @Inherited public @interface Maps
| Modifier and Type | Optional Element and Description |
|---|---|
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.
|
EnumMapper[] |
withEnums
Add one or more custom configuration for enum to enum mapping with default values.
|
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.
|
public abstract IgnoreMissing withIgnoreMissing
IgnoreMissing.NONE if you want to selma to report compiler error for fields in source and destination
that can not be mapped (this is the default value).
IgnoreMissing.SOURCE if you want selma to report compiler error only for fields from destination bean that are missing
in source.
IgnoreMissing.DESTINATION if you want selma to report compiler error for fields from source bean that are
missing in destination bean.
IgnoreMising.ALL If you want selma to report compiler error for any missing fields from source bean and destinationpublic abstract Class<?>[] withCustom
public abstract EnumMapper[] withEnums
public abstract String[] withIgnoreFields
public abstract Field[] withCustomFields
public abstract CollectionMappingStrategy withCollectionStrategy
Copyright © 2016. All Rights Reserved.