Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbee1283

Browse files
author
Fiordy
authored
docs: updated example with lombok as per code (iluwatar#1891)
1 parent785cbf4 commitbee1283

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

‎repository/README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ In plain words
3939
Let's first look at the person entity that we need to persist.
4040

4141
```java
42+
43+
@ToString
44+
@EqualsAndHashCode
45+
@Setter
46+
@Getter
4247
@Entity
48+
@NoArgsConstructor
4349
publicclassPerson {
4450

4551
@Id
@@ -49,17 +55,15 @@ public class Person {
4955
privateString surname;
5056
privateint age;
5157

52-
publicPerson() {
53-
}
54-
58+
/**
59+
* Constructor.
60+
*/
5561
publicPerson(Stringname,Stringsurname,intage) {
5662
this.name= name;
5763
this.surname= surname;
5864
this.age= age;
5965
}
6066

61-
// getters and setters ->
62-
...
6367
}
6468
```
6569

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp