Class PojoTypeAdditionalMetadata

java.lang.Object
org.hibernate.search.mapper.pojo.model.additionalmetadata.impl.PojoTypeAdditionalMetadata

public class PojoTypeAdditionalMetadata extends Object
  • Constructor Details

  • Method Details

    • isEntity

      public boolean isEntity()
      Determine whether the given type is an entity type.

      Types marked as entity types are guaranteed by the contributors to be the only types that can be the target of an association. All other types are assumed to only be able to be embedded in other objects, with their lifecycle completely tied to their embedding object. As a result, entity types are the only types whose lifecycle events are expected to be sent to POJO indexing plans.

      Returns:
      true if this type is an entity type, false otherwise.
    • getEntityTypeMetadata

      public Optional<PojoEntityTypeAdditionalMetadata> getEntityTypeMetadata()
    • getIndexedTypeMetadata

      public Optional<PojoIndexedTypeAdditionalMetadata> getIndexedTypeMetadata()
    • getNamesOfPropertiesWithAdditionalMetadata

      public Set<String> getNamesOfPropertiesWithAdditionalMetadata()
    • getPropertyAdditionalMetadata

      public PojoPropertyAdditionalMetadata getPropertyAdditionalMetadata(String name)