Kotlin data constructors suggestion
還沒有人認領這個 Issue。
評估
研究方向
issue 中沒有指定任何檔案、測試或進入點。先找到現有的 mapper 建構邏輯和 Kotlin 範例,接著確定具有必要建構函式參數的 data classes 所預期的行為;當這類別不需要空建構函式即可進行映射,且該行為有測試涵蓋時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
Thank you for your mapper. It is very useful for apps.
I am using kotlin data classes with val params:
data class Person (
var id: Int?=null
val name: String
val documentId: String
...
)
I can't use empty constructor due to notNull notation.
I could be wrong, at present time mapper demands empty constructors.
Is it possible to add mapper that uses args constructor?
Thank you,
Irina
- 主要語言
- Java
- 星號
- 1.4k
- 分支
- 504
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
mapstruct/mapstruct-examples 的其他 Issue
-
Java 21 support 未關閉
難度 4/5 3-5 天 新手友好度 35/100
mapstruct/mapstruct-examples#153 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 25/100
mapstruct/mapstruct-examples#149 · 1 則留言 ·
-
mapstruct-protobuf3 use lombok:UnsupportedOperationException(Collections$UnmodifiableCollection) 未關閉
難度 2/5 1-3 小時 新手友好度 45/100
mapstruct/mapstruct-examples#142 ·
-
難度 4/5 3-5 天 新手友好度 15/100
mapstruct/mapstruct-examples#138 ·
-
難度 4/5 3-5 天 新手友好度 25/100
mapstruct/mapstruct-examples#128 · 1 個 reaction ·
查看 mapstruct/mapstruct-examples 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 78/100
objectionary/jeo-maven-plugin#1811 ·
-
難度 2/5 1-3 小時 新手友好度 68/100
hiero-ledger/hiero-block-node#3693 ·
-
area/dependencies kind/cve severity/critical source/scan-dependencies status/triage
難度 2/5 1-3 小時 新手友好度 82/100
-
bug good first issue
難度 2/5 1-3 小時 新手友好度 84/100
-
proposal
難度 2/5 1-3 小時 新手友好度 78/100
beemdevelopment/Aegis#1840 ·