File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
spring-data-mongodb/src/main/kotlin/org/springframework/data/mongodb/core/query Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ import kotlin.reflect.KProperty1
21
21
22
22
/* *
23
23
* Nested property to generate Mongo field name.
24
+ * @author Tjeu Kayim
25
+ * @since 2.2
24
26
*/
25
27
class NestedProperty <T , U >(
26
28
internal val parent : KProperty <T >,
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ typealias TypedCriteria = TypedCriteriaBuilder.() -> Unit
35
35
* Used by the functions [typedCriteria] and [typedQuery].
36
36
*
37
37
* @author Tjeu Kayim
38
+ * @since 2.2
39
+ * @see typedCriteria
38
40
*/
39
41
class TypedCriteriaBuilder {
40
42
internal var criteria: Criteria = Criteria ()
Original file line number Diff line number Diff line change @@ -18,18 +18,21 @@ package org.springframework.data.mongodb.core.query
18
18
/* *
19
19
* Build [Criteria] with Property References as field names.
20
20
*
21
- * @see typedQuery
22
21
* @sample typedCriteriaSample
22
+ *
23
23
* @author Tjeu Kayim
24
+ * @since 2.2
25
+ * @see typedQuery
24
26
*/
25
27
fun typedCriteria (criteria : TypedCriteria ): Criteria =
26
28
TypedCriteriaBuilder ().apply (criteria).criteria
27
29
28
30
/* *
29
31
* Shorthand for `Query(typedCriteria())`.
30
32
*
31
- * @see typedCriteria
32
33
* @author Tjeu Kayim
34
+ * @since 2.2
35
+ * @see typedCriteria
33
36
*/
34
37
fun typedQuery (criteria : TypedCriteria ): Query =
35
38
Query (typedCriteria(criteria))
You can’t perform that action at this time.
0 commit comments