Skip to content

Commit 483105a

Browse files
committed
DATAMONGO-2138 - Encapsulate fields of NestedProperty
1 parent 434fd79 commit 483105a

File tree

1 file changed

+3
-3
lines changed
  • spring-data-mongodb/src/main/kotlin/org/springframework/data/mongodb/core/query

1 file changed

+3
-3
lines changed

spring-data-mongodb/src/main/kotlin/org/springframework/data/mongodb/core/query/NestedProperty.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ import kotlin.reflect.KProperty
2020
import kotlin.reflect.KProperty1
2121

2222
/**
23-
* Nested property to generate MongoDB field name.
23+
* Nested property to generate Mongo field name.
2424
*/
2525
class NestedProperty<T, U>(
26-
val parent: KProperty<T>,
27-
val child: KProperty1<T, U>
26+
internal val parent: KProperty<T>,
27+
internal val child: KProperty1<T, U>
2828
) : KProperty<U> by child
2929

3030
fun nestedFieldName(property: KProperty<*>): String {

0 commit comments

Comments
 (0)