Class RelaxedTypeBasedAggregationOperationContext
java.lang.Object
org.springframework.data.mongodb.core.aggregation.TypeBasedAggregationOperationContext
org.springframework.data.mongodb.core.aggregation.RelaxedTypeBasedAggregationOperationContext
- All Implemented Interfaces:
AggregationOperationContext
public class RelaxedTypeBasedAggregationOperationContext
extends TypeBasedAggregationOperationContext
A
TypeBasedAggregationOperationContext
with less restrictive field reference handling, suppressing
InvalidPersistentPropertyPath
exceptions when resolving mapped field names.- Since:
- 3.0
- Author:
- Christoph Strobl
-
Constructor Summary
ConstructorsConstructorDescriptionRelaxedTypeBasedAggregationOperationContext
(Class<?> type, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext, QueryMapper mapper) Creates a newTypeBasedAggregationOperationContext
for the given type,MappingContext
andQueryMapper
. -
Method Summary
Modifier and TypeMethodDescriptionprotected ExposedFields.FieldReference
getReferenceFor
(Field field) Methods inherited from class org.springframework.data.mongodb.core.aggregation.TypeBasedAggregationOperationContext
continueOnMissingFieldReference, continueOnMissingFieldReference, getFields, getMappedObject, getMappedObject, getReference, getReference, getType
-
Constructor Details
-
RelaxedTypeBasedAggregationOperationContext
public RelaxedTypeBasedAggregationOperationContext(Class<?> type, MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext, QueryMapper mapper) Creates a newTypeBasedAggregationOperationContext
for the given type,MappingContext
andQueryMapper
.- Parameters:
type
- must not be null.mappingContext
- must not be null.mapper
- must not be null.
-
-
Method Details
-
getReferenceFor
- Overrides:
getReferenceFor
in classTypeBasedAggregationOperationContext
-