Interface StandalonePojoMappingConfigurationContext


@Incubating public interface StandalonePojoMappingConfigurationContext
  • Method Details

    • programmaticMapping

      Starts the definition of the programmatic mapping.
      Returns:
      A context to define the programmatic mapping.
    • annotationMapping

      Starts the definition of the annotation mapping.
      Returns:
      A context to define the annotation mapping.
    • containerExtractors

      Starts the definition of container extractors available for use in mappings.
      Returns:
      A context to define container extractors.
    • bridges

      Starts the definition of bridges to apply by default in mappings.
      Returns:
      A context to define default bridges.
    • addEntityType

      Deprecated.
      Use SearchEntity or programmaticMapping().type( type ).searchEntity() instead.
      Register a type as an entity type with the default name, its simple class name.
      Parameters:
      type - The type to be considered as an entity type, i.e. a type that may be indexed and whose instances be added/updated/deleted through the indexing plan.
    • addEntityType

      @Deprecated default StandalonePojoMappingConfigurationContext addEntityType(Class<?> type, String entityName)
      Deprecated.
      Use SearchEntity or programmaticMapping().type( type ).searchEntity().name( entityName ) instead.
      Register a type as an entity type with the given name.
      Parameters:
      type - The type to be considered as an entity type, i.e. a type that may be indexed and whose instances be added/updated/deleted through the indexing plan.
      entityName - The name of the entity.
    • addEntityTypes

      @Deprecated default StandalonePojoMappingConfigurationContext addEntityTypes(Class<?>... types)
      Deprecated.
      Use SearchEntity or programmaticMapping().type( type ).searchEntity() for each type instead.
      Parameters:
      types - The types to be considered as entity types, i.e. types that may be indexed and whose instances be added/updated/deleted through the indexing plan.
    • addEntityTypes

      Deprecated.
      Use SearchEntity or programmaticMapping().type( type ).searchEntity() for each type instead.
      Parameters:
      types - The types to be considered as entity types, i.e. types that may be indexed and whose instances be added/updated/deleted through the indexing plan.
    • addEntityType

      @Deprecated default <E> StandalonePojoMappingConfigurationContext addEntityType(Class<E> type, EntityConfigurer<E> configurer)
      Deprecated.
      Use SearchEntity or programmaticMapping().type( type ).searchEntity().loadingBinder( binder ) instead.
      Register a type as an entity type with the default name, its simple class name.
      Type Parameters:
      E - The entity type.
      Parameters:
      type - The type to be considered as an entity type, i.e. a type that may be indexed and whose instances be added/updated/deleted through the indexing plan.
      configurer - The configurer, to provide additional information about the entity type.
    • addEntityType

      @Deprecated default <E> StandalonePojoMappingConfigurationContext addEntityType(Class<E> type, String entityName, EntityConfigurer<E> configurer)
      Deprecated.
      Use SearchEntity or programmaticMapping().type( type ).searchEntity().name( entityName ).loadingBinder( binder ) instead.
      Register a type as an entity type with the given name.
      Type Parameters:
      E - The entity type.
      Parameters:
      type - The type to be considered as an entity type, i.e. a type that may be indexed and whose instances be added/updated/deleted through the indexing plan.
      entityName - The name of the entity.
      configurer - The configurer, to provide additional information about the entity type.
    • defaultReindexOnUpdate

      void defaultReindexOnUpdate(ReindexOnUpdate defaultReindexOnUpdate)
      Defines the default depth of automatic reindexing.

      Keep the default value (ReindexOnUpdate.DEFAULT if your entity model is a graph (normalized model, e.g. in ORMs); pass ReindexOnUpdate.SHALLOW if your entity model is a collection of trees (denormalized model, e.g. in a document datastore).

      The exact behavior is as follows:

      Parameters:
      defaultReindexOnUpdate - The default behavior
    • providedIdentifierBridge

      void providedIdentifierBridge(BeanReference<? extends IdentifierBridge<Object>> providedIdentifierBridge)
      Parameters:
      providedIdentifierBridge - An identifier bridge to use by default for entities that don't have a property annotated with DocumentId. Caution: the bridge will be applied to the whole entity, with the expectation that the identifier never changes for a given entity.