mirror of
https://github.com/spring-projects/spring-data-mongodb.git
synced 2026-05-03 03:34:23 +01:00
Polishing.
Simplify KeyMapper current property/index setup. Original Pull Request: #3689
This commit is contained in:
+3
-3
@@ -1370,10 +1370,9 @@ public class QueryMapper {
|
||||
MappingContext<? extends MongoPersistentEntity<?>, MongoPersistentProperty> mappingContext) {
|
||||
|
||||
this.pathParts = Arrays.asList(key.split("\\."));
|
||||
this.currentPropertyRoot = pathParts.get(0);
|
||||
this.currentIndex = 0;
|
||||
this.iterator = pathParts.iterator();
|
||||
this.iterator.next();
|
||||
this.currentPropertyRoot = iterator.next();
|
||||
this.currentIndex = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1385,6 +1384,7 @@ public class QueryMapper {
|
||||
protected String mapPropertyName(MongoPersistentProperty property) {
|
||||
|
||||
StringBuilder mappedName = new StringBuilder(PropertyToFieldNameConverter.INSTANCE.convert(property));
|
||||
|
||||
boolean inspect = iterator.hasNext();
|
||||
|
||||
while (inspect) {
|
||||
|
||||
Reference in New Issue
Block a user