This repository was archived by the owner on Jan 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +15
-13
lines changed Expand file tree Collapse file tree 4 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 1+ name : ' Auto Author Assign'
2+
3+ on :
4+ pull_request_target :
5+ types : [opened, reopened]
6+
7+ jobs :
8+ assign-author :
9+ runs-on : ubuntu-latest
10+ steps :
11+ -
uses :
toshimaru/[email protected] 12+ with :
13+ repo-token : " ${{ secrets.GITHUB_TOKEN }}"
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ KRowMapper
88` KRowMapper ` は` Kotlin ` 向けの` RowMapper ` であり、以下の機能を提供します。
99
1010- ` BeanPropertyRowMapper ` と同等の、最小限の労力でのオブジェク関係トマッピング(` ORM ` )
11+ - [ ` BeanPropertyRowMapper ` より高速] ( https://github.com/ProjectMapK/MapKInspections#krowmapper ) なマッピング
1112- リフレクションを用いた関数呼び出しベースの柔軟で安全なマッピング
12- - 豊富な機能による、より柔軟かつ労力の少ないマッピング
1313
1414## デモコード
1515手動でマッピングコードを書いた場合と` KRowMapper ` を用いた場合を比較します。
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ KRowMapper
1414` KRowMapper ` is a ` RowMapper ` for ` Kotlin ` , which provides the following features.
1515
1616- Object relationship mapping with minimal effort, equivalent to ` BeanPropertyRowMapper ` .
17+ - [ Faster mapping than ` BeanPropertyRowMapper ` ] ( https://github.com/ProjectMapK/MapKInspections#krowmapper ) .
1718- Flexible and safe mapping based on function calls with ` reflection ` .
18- - Richer features and thus more flexible and labor-saving mapping.
1919
2020## Demo code
2121Here is a comparison between writing the mapping code manually and using ` KRowMapper ` .
Original file line number Diff line number Diff line change @@ -15,23 +15,12 @@ java {
1515 sourceCompatibility = JavaVersion .VERSION_1_8
1616}
1717
18- buildscript {
19- repositories {
20- mavenCentral()
21- }
22-
23- dependencies {
24- classpath(kotlin(" gradle-plugin" ))
25- }
26- }
27-
2818repositories {
2919 mavenCentral()
3020 maven { setUrl(" https://jitpack.io" ) }
3121}
3222
3323dependencies {
34- implementation(" org.jetbrains.kotlin:kotlin-stdlib-jdk8" )
3524 implementation(kotlin(" reflect" ))
3625 api(" com.github.ProjectMapK:Shared:0.19" )
3726 // 使うのはRowMapperのみなため他はexclude、またバージョンそのものは使う相手に合わせるためcompileOnly
You can’t perform that action at this time.
0 commit comments