Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What is going on with this article?
@sugasaki

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

More than 1 year has passed since last update.

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
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
sugasaki
個人的なメモが多いです。 書いてる事は個人の見解であり所属する組織の公式見解ではありません
runners
スポーツで世界を良くしたいエンジニアチーム。応援navi、.finisher、run&といった製品開発をしています!

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
0
Help us understand the problem. What is going on with this article?