@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface Property
is" or "get".| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
field
Optionally specifies the name of the field
on the MongoDB document that the property
annotated by this will use.
|
java.lang.Class<?>[] |
genericParameterTypes
Optionally specifies the type parameters for
any generic type parameters specified by
type() (or the type that is inferred). |
java.lang.Class<?> |
storageType
Optionally specifies the type that should
be used to store this property.
|
java.lang.Class<?> |
type
Optionally specifies the type that should
be used for this property.
|
TypeConversionHint[] |
typeConversionHints
Optionally specifies conversion hints that
are used by the
ObjectMapper when
conversion this property to and from the
MongoDB document's field. |
java.lang.Class<?> |
valueGeneratorClass
The class that generates values for the property.
|
public abstract java.lang.String field
public abstract java.lang.Class<?> type
public abstract java.lang.Class<?> storageType
public abstract java.lang.Class<?>[] genericParameterTypes
type() (or the type that is inferred).public abstract java.lang.Class<?> valueGeneratorClass
public abstract TypeConversionHint[] typeConversionHints
ObjectMapper when
conversion this property to and from the
MongoDB document's field.Copyright © 2013. All Rights Reserved.