Class HibernateOrmPathDefinitionProvider
- java.lang.Object
-
- org.hibernate.search.mapper.orm.model.impl.HibernateOrmPathDefinitionProvider
-
- All Implemented Interfaces:
PojoPathDefinitionProvider
public class HibernateOrmPathDefinitionProvider extends Object implements PojoPathDefinitionProvider
APojoPathDefinitionProvidersuitable 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
Constructors Constructor Description HibernateOrmPathDefinitionProvider(PojoRawTypeModel<?> typeModel, org.hibernate.mapping.PersistentClass persistentClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PojoPathDefinitioninterpretPath(PojoModelPathValueNode source)List<String>preDefinedOrdinals()
-
-
-
Constructor Detail
-
HibernateOrmPathDefinitionProvider
public HibernateOrmPathDefinitionProvider(PojoRawTypeModel<?> typeModel, org.hibernate.mapping.PersistentClass persistentClass)
-
-
Method Detail
-
preDefinedOrdinals
public List<String> preDefinedOrdinals()
- Specified by:
preDefinedOrdinalsin interfacePojoPathDefinitionProvider- Returns:
- The string representations of pre-defined paths, with their index matching their intended ordinal.
-
interpretPath
public PojoPathDefinition interpretPath(PojoModelPathValueNode source)
- 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.
-
-