Class IdPropertyIdentifierAccessor
java.lang.Object
org.springframework.data.mapping.TargetAwareIdentifierAccessor
org.springframework.data.mapping.model.IdPropertyIdentifierAccessor
- All Implemented Interfaces:
IdentifierAccessor
Default implementation of
IdentifierAccessor.- Since:
- 1.10
- Author:
- Christoph Strobl, Oliver Gierke
-
Constructor Summary
ConstructorsConstructorDescriptionIdPropertyIdentifierAccessor(PersistentEntity<?, ?> entity, Object target) Creates a newIdPropertyIdentifierAccessorfor the givenPersistentEntityandConvertingPropertyAccessor. -
Method Summary
Methods inherited from class org.springframework.data.mapping.TargetAwareIdentifierAccessor
getRequiredIdentifier
-
Constructor Details
-
IdPropertyIdentifierAccessor
Creates a newIdPropertyIdentifierAccessorfor the givenPersistentEntityandConvertingPropertyAccessor.- Parameters:
entity- must not be null.target- must not be null.
-
-
Method Details
-
getIdentifier
Description copied from interface:IdentifierAccessorReturns the value of the identifier.- Returns:
- the identifier of the underlying instance.
-