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

Commit ec316a9

Browse files
committed
パラメータのエイリアシングに関する記述を追加
1 parent 5314241 commit ec316a9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,14 @@ When `KParameterRequireNonNull` `annotation` is given to a parameter,
273273
data class Dst(val fooId: Int, @param:KParameterRequireNonNull val barValue: String = "default")
274274
```
275275

276+
### Parameter aliasing
277+
In `KRowMapper`, the column name of the acquisition target can be specified by giving the `KParameterAlias` `annotation` to the `parameter`.
278+
The name conversion function is applied to the name specified here.
279+
280+
```kotlin
281+
data class Dst(@param:KParameterAlias("fooId") val barValue: Int)
282+
```
283+
276284
## Installation
277285
Published on JitPack.
278286
You can use this library on `maven`, `gradle` and any other build tools.

0 commit comments

Comments
 (0)