public abstract class AnnotationBasedPersistentProperty<P extends PersistentProperty<P>> extends AbstractPersistentProperty<P>
PersistentProperty that takes annotations at a property into account.association, field, information, name, owner, propertyDescriptor, rawType| Constructor and Description |
|---|
AnnotationBasedPersistentProperty(Field field,
PropertyDescriptor propertyDescriptor,
PersistentEntity<?,P> owner,
SimpleTypeHolder simpleTypeHolder)
Creates a new
AnnotationBasedPersistentProperty. |
| Modifier and Type | Method and Description |
|---|---|
String |
getSpelExpression()
|
boolean |
isAssociation()
Considers the property an
Association if it is annotated with Reference. |
boolean |
isIdProperty()
Regards the property as ID if there is an
Id annotation found on it. |
boolean |
isTransient()
|
createAssociation, equals, getAssociation, getComponentType, getField, getGetter, getMapValueType, getName, getOwner, getPersistentEntityType, getRawType, getSetter, getType, getTypeInformation, hashCode, isArray, isCollectionLike, isEntity, isMap, shallBePersistedpublic AnnotationBasedPersistentProperty(Field field, PropertyDescriptor propertyDescriptor, PersistentEntity<?,P> owner, SimpleTypeHolder simpleTypeHolder)
AnnotationBasedPersistentProperty.field - propertyDescriptor - owner - public String getSpelExpression()
Value annotation at the property and returns the String value of
it.getSpelExpression in interface PersistentProperty<P extends PersistentProperty<P>>getSpelExpression in class AbstractPersistentProperty<P extends PersistentProperty<P>>AbstractPersistentProperty.getSpelExpression()public boolean isTransient()
isTransient in interface PersistentProperty<P extends PersistentProperty<P>>isTransient in class AbstractPersistentProperty<P extends PersistentProperty<P>>org.springframework.data.mapping.BasicPersistentProperty#isTransient()public boolean isIdProperty()
Id annotation found on it.public boolean isAssociation()
Association if it is annotated with Reference.isAssociation in interface PersistentProperty<P extends PersistentProperty<P>>isAssociation in class AbstractPersistentProperty<P extends PersistentProperty<P>>Copyright © 2012. All Rights Reserved.