We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39a59df commit f28edaaCopy full SHA for f28edaa
src/main/kotlin/org/mybatis/dynamic/sql/util/kotlin/KotlinSelectBuilder.kt
@@ -104,10 +104,11 @@ class KQueryExpressionDSL: QueryExpressionDSL<SelectModel> {
104
}
105
106
companion object {
107
- fun buildSubQuery(subQuery: KotlinQualifiedSubQueryBuilder): SubQuery {
108
- return SubQuery.Builder().withSelectModel(subQuery.build())
109
- .withAlias(subQuery.correlationName)
110
- .build()
111
- }
+ fun buildSubQuery(subQuery: KotlinQualifiedSubQueryBuilder): SubQuery =
+ with(SubQuery.Builder()) {
+ withSelectModel(subQuery.build())
+ withAlias(subQuery.correlationName)
+ build()
112
+ }
113
114
0 commit comments