Entity public class Person implements Serializable static final long s

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@Entity
public class Person implements Serializable {
static final long serialVersionUID = -7593775012501239455L;
@Id @GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
private String name;
public Person() {
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
/*public String getName() {
return name;
}*/
public void setName(String name) {
this.name = name;
}
}