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
ConstructorDescriptionIdPropertyIdentifierAccessor
(PersistentEntity<?, ?> entity, Object target) Creates a newIdPropertyIdentifierAccessor
for the givenPersistentEntity
andConvertingPropertyAccessor
. -
Method Summary
Methods inherited from class org.springframework.data.mapping.TargetAwareIdentifierAccessor
getRequiredIdentifier
-
Constructor Details
-
IdPropertyIdentifierAccessor
Creates a newIdPropertyIdentifierAccessor
for the givenPersistentEntity
andConvertingPropertyAccessor
.- Parameters:
entity
- must not be null.target
- must not be null.
-
-
Method Details
-
getIdentifier
Description copied from interface:IdentifierAccessor
Returns the value of the identifier.- Returns:
- the identifier of the underlying instance.
-