mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 06:45:49 +00:00
age 추가
This commit is contained in:
parent
e157f200f8
commit
08e80e362b
1 changed files with 11 additions and 0 deletions
|
@ -60,6 +60,17 @@ public class Owner extends Person {
|
|||
|
||||
@OneToMany(cascade = CascadeType.ALL, mappedBy = "owner")
|
||||
private Set<Pet> pets;
|
||||
|
||||
public 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