Class QueryMapper.AssociationConverter
java.lang.Object
org.springframework.data.mongodb.core.convert.QueryMapper.AssociationConverter
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<MongoPersistentProperty,String>
- Enclosing class:
- QueryMapper
protected static class QueryMapper.AssociationConverter
extends Object
implements org.springframework.core.convert.converter.Converter<MongoPersistentProperty,String>
Converter to skip all properties after an association property was rendered.
- Author:
- Oliver Gierke
-
Constructor Summary
ConstructorsConstructorDescriptionAssociationConverter(String name, org.springframework.data.mapping.Association<MongoPersistentProperty> association) Creates a newQueryMapper.AssociationConverterfor the givenAssociation. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
AssociationConverter
public AssociationConverter(String name, org.springframework.data.mapping.Association<MongoPersistentProperty> association) Creates a newQueryMapper.AssociationConverterfor the givenAssociation.- Parameters:
association- must not be null.
-
-
Method Details
-
convert
- Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<MongoPersistentProperty,String>
-