This repository was archived by the owner on Jan 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/main/kotlin/com/mapk/krowmapper Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,14 @@ import kotlin.reflect.KParameter
10
10
import org.springframework.jdbc.core.RowMapper
11
11
12
12
class KRowMapper <T : Any > private constructor(
13
- private val function : KFunctionForCall <T >,
14
- parameterNameConverter : (String ) -> String
13
+ private val function : KFunctionForCall <T >
15
14
) : RowMapper<T> {
16
- constructor (function: KFunction <T >, propertyNameConverter : (String ) -> String = { it }) : this (
17
- KFunctionForCall (function), propertyNameConverter
15
+ constructor (function: KFunction <T >, parameterNameConverter : (String ) -> String = { it }) : this (
16
+ KFunctionForCall (function, parameterNameConverter)
18
17
)
19
18
20
- constructor (clazz: KClass <T >, propertyNameConverter : (String ) -> String = { it }) : this (
21
- clazz.toKConstructor(), propertyNameConverter
19
+ constructor (clazz: KClass <T >, parameterNameConverter : (String ) -> String = { it }) : this (
20
+ clazz.toKConstructor(parameterNameConverter)
22
21
)
23
22
24
23
private val parameters: List <ParameterForMap > = function.parameters
You can’t perform that action at this time.
0 commit comments