owner add age

This commit is contained in:
bamyam 2023-11-01 12:35:43 +09:00
parent 923e2b7aa3
commit 8f0ea549ed

View file

@ -63,7 +63,17 @@ public class Owner extends Person {
@JoinColumn(name = "owner_id") @JoinColumn(name = "owner_id")
@OrderBy("name") @OrderBy("name")
private List<Pet> pets = new ArrayList<>(); private List<Pet> pets = new ArrayList<>();
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;
} }