Skip to content

Commit bee1283

Browse files
author
Fiordy
authored
docs: updated example with lombok as per code (iluwatar#1891)
1 parent 785cbf4 commit bee1283

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
public class Person {
4450

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

52-
public Person() {
53-
}
54-
58+
/**
59+
* Constructor.
60+
*/
5561
public Person(String name, String surname, int age) {
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)