未验证 提交 bee12833 编写于 作者: F Fiordy 提交者: GitHub

docs: updated example with lombok as per code (#1891)

上级 785cbf42
......@@ -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 ->
...
}
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册