Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit fb00b51

Browse files
authored
Merge pull request #17 from k163377/feature
Improved processing efficiency.
2 parents 15fed50 + 2c3bfb2 commit fb00b51

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group = "com.mapk"
9-
version = "0.10"
9+
version = "0.12"
1010

1111
java {
1212
sourceCompatibility = JavaVersion.VERSION_1_8
@@ -30,7 +30,7 @@ repositories {
3030
dependencies {
3131
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
3232
implementation(kotlin("reflect"))
33-
api("com.github.ProjectMapK:Shared:0.13")
33+
api("com.github.ProjectMapK:Shared:0.14")
3434
// 使うのはRowMapperのみなため他はexclude、またバージョンそのものは使う相手に合わせるためcompileOnly
3535
compileOnly(group = "org.springframework", name = "spring-jdbc", version = "5.2.4.RELEASE") {
3636
exclude(module = "spring-beans")

src/main/kotlin/com/mapk/krowmapper/KRowMapper.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class KRowMapper<T : Any> private constructor(
2323
override fun mapRow(rs: ResultSet, rowNum: Int): T {
2424
val adaptor = function.getArgumentAdaptor()
2525

26-
parameters.forEach { adaptor.putIfAbsent(it.name, it.getObject(rs)) }
26+
parameters.forEach { adaptor.forcePut(it.name, it.getObject(rs)) }
2727

2828
return function.call(adaptor)
2929
}

0 commit comments

Comments
 (0)