org.springframework.data.document.mongodb.mapping
Class MongoPersistentProperty
java.lang.Object
BasicPersistentProperty
org.springframework.data.document.mongodb.mapping.MongoPersistentProperty
public class MongoPersistentProperty
- extends BasicPersistentProperty
Mongo specific
org.springframework.data.mapping.model.PersistentProperty
implementation.
- Author:
- Oliver Gierke
Method Summary |
boolean |
isIdProperty()
Also considers fields as id that are of supported id type and name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SUPPORTED_ID_TYPES
private static final java.util.Set<java.lang.Class<?>> SUPPORTED_ID_TYPES
SUPPORTED_ID_PROPERTY_NAMES
private static final java.util.Set<java.lang.String> SUPPORTED_ID_PROPERTY_NAMES
MongoPersistentProperty
public MongoPersistentProperty(java.lang.reflect.Field field,
java.beans.PropertyDescriptor propertyDescriptor,
TypeInformation owningTypeInformation)
- Creates a new
MongoPersistentProperty
.
- Parameters:
field
- propertyDescriptor
- owningTypeInformation
-
isIdProperty
public boolean isIdProperty()
- Also considers fields as id that are of supported id type and name.
- See Also:
SUPPORTED_ID_PROPERTY_NAMES
,
SUPPORTED_ID_TYPES