Annotation Interface EnableArangoRepositories


Annotation to activate ArangoDB repositories.

If no base package is configured through either value(), basePackages() or basePackageClasses() it will trigger scanning of the package of annotated class.

Author:
Audrius Malele, Mark McCormick, Mark Vollmary, Christian Lechner
  • Element Details

    • value

      @AliasFor("basePackages") String[] value
      Alias for basePackages().

      Intended to be used instead of basePackages() when no other attributes are needed — for example: @EnableArangoRepositories("org.my.project") instead of @EnableArangoRepositories(basePackages = "org.my.project").

      Default:
      {}
    • basePackages

      @AliasFor("value") String[] basePackages
      Base packages to scan for annotated components.

      Use basePackageClasses() for a type-safe alternative to package names.

      Default:
      {}
    • basePackageClasses

      Class<?>[] basePackageClasses
      Type-safe alternative to basePackages() for specifying the packages to scan for annotated components.
      Default:
      {}
    • includeFilters

      ComponentScan.Filter[] includeFilters
      Specifies which types are eligible for component scanning. Further narrows the set of candidate components from everything in basePackages() to everything in the base packages that matches the given filter or filters.
      Default:
      {}
    • excludeFilters

      ComponentScan.Filter[] excludeFilters
      Specifies which types are not eligible for component scanning.
      Default:
      {}
    • repositoryImplementationPostfix

      String repositoryImplementationPostfix
      Returns the postfix to be used for custom repository implementations. Defaults to Impl.
      Default:
      "Impl"
    • repositoryFactoryBeanClass

      Class<?> repositoryFactoryBeanClass
      Returns the FactoryBean class to be used for each repository instance. Defaults to ArangoRepositoryFactoryBean.
      Default:
      com.arangodb.springframework.repository.ArangoRepositoryFactoryBean.class
    • namedQueriesLocation

      String namedQueriesLocation
      Configures the location of the Spring Data named queries properties file. Defaults to META-INF/arango-named-queries.properties.
      Default:
      ""
    • queryLookupStrategy

      QueryLookupStrategy.Key queryLookupStrategy
      Returns the key of the QueryLookupStrategy that should be used to lookup queries for query methods. Currently only the default QueryLookupStrategy.Key.CREATE_IF_NOT_FOUND is supported.
      Default:
      CREATE_IF_NOT_FOUND