Class AnnotationRepositoryMetadata
java.lang.Object
org.springframework.data.repository.core.support.AbstractRepositoryMetadata
org.springframework.data.repository.core.support.AnnotationRepositoryMetadata
- All Implemented Interfaces:
RepositoryMetadata
RepositoryMetadata
implementation inspecting the given repository interface for a
RepositoryDefinition
annotation.- Author:
- Oliver Gierke, Thomas Darimont, Xeno Amess
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationRepositoryMetadata
(Class<?> repositoryInterface) Creates a newAnnotationRepositoryMetadata
instance looking up repository types from aRepositoryDefinition
annotation. -
Method Summary
Methods inherited from class org.springframework.data.repository.core.support.AbstractRepositoryMetadata
getAlternativeDomainTypes, getCrudMethods, getMetadata, getRepositoryInterface, getReturnedDomainClass, getReturnType, isPagingRepository, isReactiveRepository
-
Constructor Details
-
AnnotationRepositoryMetadata
Creates a newAnnotationRepositoryMetadata
instance looking up repository types from aRepositoryDefinition
annotation.- Parameters:
repositoryInterface
- must not be null.
-
-
Method Details
-
getIdType
Description copied from interface:RepositoryMetadata
Returns the id class the given class is declared for.- Returns:
- the id class of the entity managed by the repository.
-
getDomainType
Description copied from interface:RepositoryMetadata
Returns the domain class the repository is declared for.- Returns:
- the domain class the repository is handling.
-