We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 785cbf4 commit bee1283Copy full SHA for bee1283
repository/README.md
@@ -39,7 +39,13 @@ In plain words
39
Let's first look at the person entity that we need to persist.
40
41
```java
42
+
43
+@ToString
44
+@EqualsAndHashCode
45
+@Setter
46
+@Getter
47
@Entity
48
+@NoArgsConstructor
49
public class Person {
50
51
@Id
@@ -49,17 +55,15 @@ public class Person {
55
private String surname;
56
private int age;
57
52
- public Person() {
53
- }
54
-
58
+ /**
59
+ * Constructor.
60
+ */
61
public Person(String name, String surname, int age) {
62
this.name = name;
63
this.surname = surname;
64
this.age = age;
65
}
66
- // getters and setters ->
- ...
67
68
```
69
0 commit comments