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
ConstructorDescriptionAssociationConverter
(String name, Association<MongoPersistentProperty> association) Creates a newQueryMapper.AssociationConverter
for the givenAssociation
. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
AssociationConverter
Creates a newQueryMapper.AssociationConverter
for the givenAssociation
.- Parameters:
association
- must not be null.
-
-
Method Details
-
convert
- Specified by:
convert
in interfaceorg.springframework.core.convert.converter.Converter<MongoPersistentProperty,
String>
-