Class SearchMappingBuilder


  • public final class SearchMappingBuilder
    extends Object
    • Method Detail

      • programmaticMapping

        public org.hibernate.search.mapper.pojo.mapping.definition.programmatic.ProgrammaticMappingConfigurationContext programmaticMapping()
      • addEntityType

        public SearchMappingBuilder addEntityType​(Class<?> type)
        Register a type as an entity type with the default name, its class name.
        Parameters:
        type - The type to be considered as an entity type.
        Returns:
        this, for call chaining.
      • addEntityType

        public SearchMappingBuilder addEntityType​(Class<?> type,
                                                  String entityName)
        Register a type as an entity type with the given name.
        Parameters:
        type - The type to be considered as an entity type.
        entityName - The name of the entity.
        Returns:
        this, for call chaining.
      • addEntityTypes

        public SearchMappingBuilder addEntityTypes​(Set<Class<?>> types)
        Parameters:
        types - The types to be considered as entity types.
        Returns:
        this, for call chaining.
      • setProvidedIdentifierBridge

        public SearchMappingBuilder setProvidedIdentifierBridge​(org.hibernate.search.engine.environment.bean.BeanReference<? extends org.hibernate.search.mapper.pojo.bridge.IdentifierBridge<Object>> providedIdentifierBridge)
      • setEntityLoader

        public SearchMappingBuilder setEntityLoader​(org.hibernate.search.mapper.pojo.loading.spi.PojoSelectionEntityLoader<?> entityLoader)
      • build

        public SearchMapping build​(Optional<org.hibernate.search.engine.common.spi.SearchIntegration> previousIntegration)