@Documented @Target(TYPE) @Retention(RUNTIME) @RootMapping @TypeMapping(processor=@TypeMappingAnnotationProcessorRef(type=org.hibernate.search.mapper.pojo.mapping.definition.annotation.processing.impl.SearchEntityProcessor.class,retrieval=CONSTRUCTOR)) @Incubating public @interface SearchEntity
Given a type, marks this type as an entity type.

WARNING: this is unnecessary when using the Hibernate ORM integration, which contributes this information automatically, and is in fact unsupported with the Hibernate ORM integration. See HSEARCH-5076 to track progress on allowing the use of `@SearchEntity` in the Hibernate ORM integration to map non-ORM entities.

  • Element Details

    • name

      String name
      Returns:
      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.
      Default:
      ""
    • loadingBinder

      EntityLoadingBinderRef loadingBinder
      Returns:
      The binder for loading of entities of this type.

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

      Default:
      @org.hibernate.search.mapper.pojo.loading.mapping.annotation.EntityLoadingBinderRef