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
1010import org.springframework.jdbc.core.RowMapper
1111
1212class KRowMapper <T : Any > private constructor(
13- private val function : KFunctionForCall <T >,
14- parameterNameConverter : (String ) -> String
13+ private val function : KFunctionForCall <T >
1514) : 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)
1817 )
1918
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)
2221 )
2322
2423 private val parameters: List <ParameterForMap > = function.parameters
You can’t perform that action at this time.
0 commit comments