LoginSignup
0
0

More than 3 years have passed since last update.

kotlin > dozerでマッピング (作成中)

Posted at

sample

bringmeister/dozer-with-kotlin: A demo project to show how to use Dozer with Kotlin.

First Step

API Mappings

via API · GitBook

以下、抜粋

Since version 5.3 Dozer offers two ways for specifying explicit mappings.
API mappings are intended to solve all of the mentioned problems.

バージョン5.3以降、Dozerは明示的なマッピングを指定する2つの方法を提供します。
XMLマッピングの欠陥は動的に生成できないことです。
APIマッピングは、前述の問題をすべて解決することを目的としています。


@NoArgConstructor
class UserDto(name: String) {
    var name: String = name
}



class UserDto {
    constructor() {}

    lateinit var name: String
}


0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0