Class HibernateOrmPathDefinitionProvider
java.lang.Object
org.hibernate.search.mapper.orm.model.impl.HibernateOrmPathDefinitionProvider
- All Implemented Interfaces:
PojoPathDefinitionProvider
public class HibernateOrmPathDefinitionProvider
extends Object
implements PojoPathDefinitionProvider
A
PojoPathDefinitionProvider suitable for use with Hibernate ORM,
in particular with its event system.
Paths passed to this factory are assigned a string representation so as to match the property names and collection roles from Hibernate ORM.
- See Also:
-
HibernateOrmPathInterpreter
-
Constructor Summary
ConstructorsConstructorDescriptionHibernateOrmPathDefinitionProvider(PojoRawTypeModel<?> typeModel, PersistentClass persistentClass) -
Method Summary
-
Constructor Details
-
HibernateOrmPathDefinitionProvider
public HibernateOrmPathDefinitionProvider(PojoRawTypeModel<?> typeModel, PersistentClass persistentClass)
-
-
Method Details
-
preDefinedOrdinals
- Specified by:
preDefinedOrdinalsin interfacePojoPathDefinitionProvider- Returns:
- The string representations of pre-defined paths, with their index matching their intended ordinal.
-
interpretPath
- Specified by:
interpretPathin interfacePojoPathDefinitionProvider- Parameters:
source- A set of paths to check for correctness (can it be ever marked as dirty?) and to turn into their string representation. The set must be non-null and non-empty, and the elements must be non-null. Container value extractor paths must be completely resolved:ContainerExtractorPath.defaultExtractors()is an invalid value that must never appear in the given paths.- Returns:
- A definition of the given path.
-