mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 15:55:49 +00:00
owner add age
This commit is contained in:
parent
923e2b7aa3
commit
8f0ea549ed
1 changed files with 11 additions and 1 deletions
|
@ -64,6 +64,16 @@ public class Owner extends Person {
|
|||
@OrderBy("name")
|
||||
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() {
|
||||
return this.address;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue