use of org.hibernate.search.mapper.pojo.model.path.PojoModelPath in project hibernate-search by hibernate.
the class AbstractIdentityMappingCollectorNode method failureCollector.
public final ContextualFailureCollector failureCollector() {
BoundPojoModelPath modelPath = getModelPath();
ContextualFailureCollector failureCollector = mappingHelper.failureCollector().withContext(PojoEventContexts.fromType(modelPath.getRootType().rawType()));
PojoModelPath unboundPath = modelPath.toUnboundPath();
if (unboundPath != null) {
failureCollector = failureCollector.withContext(PojoEventContexts.fromPath(modelPath.toUnboundPath()));
}
return failureCollector;
}
use of org.hibernate.search.mapper.pojo.model.path.PojoModelPath in project hibernate-search by hibernate.
the class AbstractPojoProcessorNodeBuilder method failureCollector.
public final ContextualFailureCollector failureCollector() {
BoundPojoModelPath modelPath = getModelPath();
ContextualFailureCollector failureCollector = mappingHelper.failureCollector().withContext(PojoEventContexts.fromType(modelPath.getRootType().rawType()));
PojoModelPath unboundPath = modelPath.toUnboundPath();
if (unboundPath != null) {
failureCollector = failureCollector.withContext(PojoEventContexts.fromPath(modelPath.toUnboundPath()));
}
return failureCollector;
}
Aggregations