Interface TypeMappingSearchEntityStep


@Incubating public interface TypeMappingSearchEntityStep
The step in a mapping definition where a type's entity metadata can be configured more precisely.
  • Method Details

    • name

      Parameters:
      entityName - The name of the entity type. Defaults to the JPA entity name for the Hibernate ORM mapper, or failing that to the simple class name.
      Returns:
      this, for method chaining.
      See Also:
    • loadingBinder

      default TypeMappingSearchEntityStep loadingBinder(Object binder)
      Defines a binder for loading of entities of this type.

      Note: this is unnecessary when using the Hibernate ORM mapper, which contributes this information automatically.

      To pass some parameters to the binder, use the method loadingBinder(BeanReference, Map) instead.

      Parameters:
      binder - A loading binder to apply to the entity type.
      Returns:
      this, for method chaining.
      See Also:
    • loadingBinder

      default TypeMappingSearchEntityStep loadingBinder(org.hibernate.search.engine.environment.bean.BeanReference<?> binderRef)
      Defines a binder for loading of entities of this type.

      Note: this is unnecessary when using the Hibernate ORM mapper, which contributes this information automatically.

      To pass some parameters to the binder, use the method loadingBinder(BeanReference, Map) instead.

      Parameters:
      binderRef - A BeanReference to the loading binder to apply to the entity type.
      Returns:
      this, for method chaining.
      See Also:
    • loadingBinder

      TypeMappingSearchEntityStep loadingBinder(org.hibernate.search.engine.environment.bean.BeanReference<?> binderRef, Map<String,Object> params)
      Defines a binder for loading of entities of this type.

      Note: this is unnecessary when using the Hibernate ORM mapper, which contributes this information automatically.

      With this method it is possible to pass a set of parameters to the binder.

      Parameters:
      binderRef - A BeanReference to the loading binder to apply to the entity type.
      params - The parameters to pass to the binder.
      Returns:
      this, for method chaining.
      See Also: