owner add age

This commit is contained in:
WickedSejin 2020-03-13 12:39:22 +09:00
parent ac3e64208e
commit 7bc27a916e

View file

@ -62,6 +62,16 @@ 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 int age;
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public String getAddress() { public String getAddress() {
return this.address; return this.address;
} }