This commit is contained in:
cha7713 2020-04-10 15:42:40 +09:00
parent 5f9f4e7559
commit ebe55b06c4

View file

@ -62,9 +62,18 @@ public class Owner extends Person {
@OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
private Set<Pet> pets; private Set<Pet> pets;
private String email;
private int age; private int age;
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public int getAge() { public int getAge() {
return age; return age;