File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
spring-data-mongodb/src/main/kotlin/org/springframework/data/mongodb/core/query Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,15 @@ import kotlin.reflect.KProperty1
25
25
* @since 2.2
26
26
*/
27
27
class NestedProperty <T , U >(
28
- internal val parent : KProperty <T >,
29
- internal val child : KProperty1 <T , U >
30
- ) : KProperty<U > by child
28
+ internal val parent : KProperty <U >,
29
+ internal val child : KProperty1 <U , T >
30
+ ) : KProperty<T > by child
31
31
32
32
/* *
33
33
* Recursively construct field name for a nested property.
34
34
* @author Tjeu Kayim
35
- * @since 2.2
36
35
*/
37
- fun nestedFieldName (property : KProperty <* >): String {
36
+ internal fun nestedFieldName (property : KProperty <* >): String {
38
37
return when (property) {
39
38
is NestedProperty <* , * > ->
40
39
" ${nestedFieldName(property.parent)} .${property.child.name} "
You can’t perform that action at this time.
0 commit comments