Skip to content

Commit 1c2c01d

Browse files
patsancufiliphr
authored andcommitted
Update README.MD according to source code changes
changes: f2139a6
1 parent 80f7843 commit 1c2c01d

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

mapstruct-kotlin/README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,11 @@ Example usage of MapStruct and Kotlin with JDK-8 Bytecode. This is achieved by u
77
In this example we want to map between a Person (Model) and a PersonDto (DTO).
88

99
```kotlin
10-
data class Person(var firstName: String?, var lastName: String?, var phoneNumber: String?, var birthdate: LocalDate?) {
11-
// Necessary for MapStruct
12-
constructor() : this(null, null, null, null)
13-
}
10+
data class Person(var firstName: String?, var lastName: String?, var phoneNumber: String?, var birthdate: LocalDate?)
1411
```
1512

1613
```kotlin
17-
data class PersonDto(var firstName: String?, var lastName: String?, var phone: String?, var birthdate: LocalDate?) {
18-
// Necessary for MapStruct
19-
constructor() : this(null, null, null, null)
20-
}
14+
data class PersonDto(var firstName: String?, var lastName: String?, var phone: String?, var birthdate: LocalDate?)
2115
```
2216

2317
The MapStruct converter:

0 commit comments

Comments
 (0)