@Target(value=METHOD)
@Retention(value=CLASS)
public @interface MapMapping
Map<String, String> and Map<Long, Date>.
Note: at least one element needs to be specified
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
keyDateFormat
A format string as processable by
SimpleDateFormat if the annotated method maps from a map with key type
String to an map with key type Date or vice-versa. |
java.lang.Class<? extends java.lang.annotation.Annotation>[] |
keyQualifiedBy
A key value qualifier can be specified to aid the selection process of a suitable mapper.
|
java.lang.Class<?> |
keyTargetType
Specifies the type of the key to be used in the result of the mapping method in case multiple mapping
methods qualify.
|
NullValueMappingStrategy |
nullValueMappingStrategy
The strategy to be applied when
null is passed as source value to this map mapping. |
java.lang.String |
valueDateFormat
A format string as processable by
SimpleDateFormat if the annotated method maps from a map with value
type String to an map with value type Date or vice-versa. |
java.lang.Class<? extends java.lang.annotation.Annotation>[] |
valueQualifiedBy
A value qualifier can be specified to aid the selection process of a suitable mapper.
|
java.lang.Class<?> |
valueTargetType
Specifies the type of the value to be used in the result of the mapping method in case multiple mapping
methods qualify.
|
public abstract java.lang.String keyDateFormat
SimpleDateFormat if the annotated method maps from a map with key type
String to an map with key type Date or vice-versa. Will be ignored for all other key types.SimpleDateFormat.public abstract java.lang.String valueDateFormat
SimpleDateFormat if the annotated method maps from a map with value
type String to an map with value type Date or vice-versa. Will be ignored for all other value
types.SimpleDateFormat.public abstract java.lang.Class<? extends java.lang.annotation.Annotation>[] keyQualifiedBy
public abstract java.lang.Class<? extends java.lang.annotation.Annotation>[] valueQualifiedBy
public abstract java.lang.Class<?> keyTargetType
public abstract java.lang.Class<?> valueTargetType
public abstract NullValueMappingStrategy nullValueMappingStrategy
null is passed as source value to this map mapping. If no
strategy is configured, the strategy given via MapperConfig.nullValueMappingStrategy() or
Mapper.nullValueMappingStrategy() will be applied, using NullValueMappingStrategy.RETURN_NULL
by default.null is passed as source value to the methods of this mapping.Copyright © 2012-2015. All Rights Reserved.