Class DynamoDBIdIsHashKeyEntityInformationImpl<T,​ID>

  • All Implemented Interfaces:
    DynamoDBEntityInformation<T,​ID>, DynamoDBHashKeyExtractingEntityMetadata<T>, org.springframework.data.repository.core.EntityInformation<T,​ID>, org.springframework.data.repository.core.EntityMetadata<T>

    public class DynamoDBIdIsHashKeyEntityInformationImpl<T,​ID>
    extends FieldAndGetterReflectionEntityInformation<T,​ID>
    implements DynamoDBEntityInformation<T,​ID>
    Encapsulates minimal information needed to load DynamoDB entities. This default implementation is NOT range-key aware - getRangeKey(ID id) will always return null Delegates to wrapped DynamoDBHashKeyExtractingEntityMetadata component for many operations - it is the responsibility of calling clients to ensure they pass in a valid DynamoDBHashKeyExtractingEntityMetadata implementation for this entity. Entities of type T must have a public getter method of return type ID annotated with @DynamoDBHashKey to ensure correct behavior
    Author:
    Michael Lavelle, Sebastian Just