owner add age

This commit is contained in:
john1227 2019-12-04 15:52:57 +09:00
parent 1561eb5506
commit 3e606a2e34

View file

@ -60,6 +60,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;