Browse Source

Fix POJO access

master
Kirill Nikolaev 3 months ago
parent
commit
f1f2bbf61e
Signed by: sokket <sokket@oceancraft.ru> GPG Key ID: 082FDA12D688C5C1
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/main/java/com/example/demo/Person.java

+ 4
- 3
src/main/java/com/example/demo/Person.java View File

@@ -12,11 +12,12 @@ import javax.persistence.Id;
@Entity
@NoArgsConstructor
public class Person {

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
Long id;
String name;
String surname;
private int id;
private String name;
private String surname;

public Person(String name, String surname) {
this.name = name;


Loading…
Cancel
Save