Annotation Type EnableDynamoDBRepositories
-
@Target(TYPE) @Retention(RUNTIME) @Documented @Inherited @Import(DynamoDBRepositoriesRegistrar.class) public @interface EnableDynamoDBRepositories
Annotation to enable DynamoDB repositories. Will scan the package of the annotated configuration class for Spring Data repositories by default.- Author:
- Michael Lavelle, Sebastian Just
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringamazonDynamoDBRefReturns theAmazonDynamoDBreference to be used for each repository instancejava.lang.Class<?>[]basePackageClassesType-safe alternative tobasePackages()for specifying the packages to scan for annotated components.java.lang.String[]basePackagesBase packages to scan for annotated components.java.lang.StringdynamoDBMapperConfigRefReturns theDynamoDBMapperConfigreference to be used for to configure AmazonDynamoDBjava.lang.StringdynamoDBOperationsRefReturns theValidatorreference to be used for to validate DynamoDB entitiesorg.springframework.context.annotation.ComponentScan.Filter[]excludeFiltersSpecifies which types are not eligible for component scanning.org.springframework.context.annotation.ComponentScan.Filter[]includeFiltersSpecifies which types are eligible for component scanning.java.lang.StringmappingContextRefReturns theDynamoDBMappingContextreference for theMappingContextfor AmazonDynamoDB.java.lang.StringnamedQueriesLocationConfigures the location of where to find the Spring Data named queries properties file.org.springframework.data.repository.query.QueryLookupStrategy.KeyqueryLookupStrategyReturns the key of theQueryLookupStrategyto be used for lookup queries for query methods.java.lang.Class<?>repositoryFactoryBeanClassReturns theFactoryBeanclass to be used for each repository instance.java.lang.StringrepositoryImplementationPostfixReturns the postfix to be used when looking up custom repository implementations.java.lang.String[]valueAlias for thebasePackages()attribute.
-
-
-
Element Detail
-
value
java.lang.String[] value
Alias for thebasePackages()attribute. Allows for more concise annotation declarations e.g.:@EnableDynamoDBRepositories("org.my.pkg")instead of@EnableDynamoDBaRepositories(basePackages="org.my.pkg").- Returns:
- The package name for scanning
- Default:
- {}
-
-
-
basePackages
java.lang.String[] basePackages
Base packages to scan for annotated components.value()is an alias for (and mutually exclusive with) this attribute. UsebasePackageClasses()for a type-safe alternative to String-based package names.- Returns:
- The package name for scanning
- Default:
- {}
-
-
-
basePackageClasses
java.lang.Class<?>[] basePackageClasses
Type-safe alternative tobasePackages()for specifying the packages to scan for annotated components. The package of each class specified will be scanned. Consider creating a special no-op marker class or interface in each package that serves no purpose other than being referenced by this attribute.- Returns:
- The class to figure out the base package for scanning
- Default:
- {}
-
-
-
includeFilters
org.springframework.context.annotation.ComponentScan.Filter[] includeFilters
Specifies which types are eligible for component scanning. Further narrows the set of candidate components from everything inbasePackages()to everything in the base packages that matches the given filter or filters.- Returns:
- All the include filters
- Default:
- {}
-
-
-
repositoryImplementationPostfix
java.lang.String repositoryImplementationPostfix
Returns the postfix to be used when looking up custom repository implementations. Defaults to Impl. So for a repository namedPersonRepositorythe corresponding implementation class will be looked up scanning forPersonRepositoryImpl. Defaults to 'Impl'.- Returns:
- The implementation postfix that's used
- Default:
- "Impl"
-
-
-
queryLookupStrategy
org.springframework.data.repository.query.QueryLookupStrategy.Key queryLookupStrategy
Returns the key of theQueryLookupStrategyto be used for lookup queries for query methods. Defaults toQueryLookupStrategy.Key.CREATE_IF_NOT_FOUND.- Returns:
- The lookup strategy
- Default:
- org.springframework.data.repository.query.QueryLookupStrategy.Key.CREATE_IF_NOT_FOUND
-
-
-
repositoryFactoryBeanClass
java.lang.Class<?> repositoryFactoryBeanClass
Returns theFactoryBeanclass to be used for each repository instance. Defaults toDynamoDBRepositoryFactoryBean.- Returns:
- The repository factory bean cleass
- Default:
- org.socialsignin.spring.data.dynamodb.repository.support.DynamoDBRepositoryFactoryBean.class
-
-
-
dynamoDBOperationsRef
java.lang.String dynamoDBOperationsRef
Returns theValidatorreference to be used for to validate DynamoDB entities- Returns:
- The
DynamoDBOperationsbean name
- Default:
- ""
-
-
-
mappingContextRef
java.lang.String mappingContextRef
Returns theDynamoDBMappingContextreference for theMappingContextfor AmazonDynamoDB.- Returns:
- The
DynamoDBMappingContextbean name
- Default:
- ""
-
-