From bee1283371d25dd5f0c5e7d4bac66b4c05f9aeac Mon Sep 17 00:00:00 2001 From: Fiordy <53420573+Fiordy@users.noreply.github.com> Date: Sun, 24 Oct 2021 16:27:24 +0200 Subject: [PATCH] docs: updated example with lombok as per code (#1891) --- repository/README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/repository/README.md b/repository/README.md index 887e3b632..aa929d8eb 100644 --- a/repository/README.md +++ b/repository/README.md @@ -39,7 +39,13 @@ In plain words Let's first look at the person entity that we need to persist. ```java + +@ToString +@EqualsAndHashCode +@Setter +@Getter @Entity +@NoArgsConstructor public class Person { @Id @@ -49,17 +55,15 @@ public class Person { private String surname; private int age; - public Person() { - } - + /** + * Constructor. + */ public Person(String name, String surname, int age) { this.name = name; this.surname = surname; this.age = age; } - // getters and setters -> - ... } ```