This repository was archived by the owner on Jan 20, 2023. It is now read-only.
File tree 4 files changed +15
-13
lines changed
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/auto-author-assign@v1.2.0
12
+ with :
13
+ repo-token : " ${{ secrets.GITHUB_TOKEN }}"
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ KRowMapper
8
8
` KRowMapper ` は` Kotlin ` 向けの` RowMapper ` であり、以下の機能を提供します。
9
9
10
10
- ` BeanPropertyRowMapper ` と同等の、最小限の労力でのオブジェク関係トマッピング(` ORM ` )
11
+ - [ ` BeanPropertyRowMapper ` より高速] ( https://github.com/ProjectMapK/MapKInspections#krowmapper ) なマッピング
11
12
- リフレクションを用いた関数呼び出しベースの柔軟で安全なマッピング
12
- - 豊富な機能による、より柔軟かつ労力の少ないマッピング
13
13
14
14
## デモコード
15
15
手動でマッピングコードを書いた場合と` KRowMapper ` を用いた場合を比較します。
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ KRowMapper
14
14
` KRowMapper ` is a ` RowMapper ` for ` Kotlin ` , which provides the following features.
15
15
16
16
- Object relationship mapping with minimal effort, equivalent to ` BeanPropertyRowMapper ` .
17
+ - [ Faster mapping than ` BeanPropertyRowMapper ` ] ( https://github.com/ProjectMapK/MapKInspections#krowmapper ) .
17
18
- Flexible and safe mapping based on function calls with ` reflection ` .
18
- - Richer features and thus more flexible and labor-saving mapping.
19
19
20
20
## Demo code
21
21
Here 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 {
15
15
sourceCompatibility = JavaVersion .VERSION_1_8
16
16
}
17
17
18
- buildscript {
19
- repositories {
20
- mavenCentral()
21
- }
22
-
23
- dependencies {
24
- classpath(kotlin(" gradle-plugin" ))
25
- }
26
- }
27
-
28
18
repositories {
29
19
mavenCentral()
30
20
maven { setUrl(" https://jitpack.io" ) }
31
21
}
32
22
33
23
dependencies {
34
- implementation(" org.jetbrains.kotlin:kotlin-stdlib-jdk8" )
35
24
implementation(kotlin(" reflect" ))
36
25
api(" com.github.ProjectMapK:Shared:0.19" )
37
26
// 使うのはRowMapperのみなため他はexclude、またバージョンそのものは使う相手に合わせるためcompileOnly
You can’t perform that action at this time.
0 commit comments