From 5f9f4e7559d9b28023eb0e76e2d25e6c19e21bf4 Mon Sep 17 00:00:00 2001 From: cha7713 Date: Fri, 10 Apr 2020 15:29:30 +0900 Subject: [PATCH] hh --- pom.xml | 42 ++++++++++++++++--- .../samples/petclinic/owner/Owner.java | 16 +++++++ 2 files changed, 52 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index becd05b79..a305f879e 100644 --- a/pom.xml +++ b/pom.xml @@ -137,12 +137,7 @@ ${spring-format.version} - - validate - - validate - - + @@ -275,6 +270,41 @@ + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + io.spring.javaformat + + + spring-javaformat-maven-plugin + + + [0.0.20,) + + + validate + + + + + + + + + + + + diff --git a/src/main/java/org/springframework/samples/petclinic/owner/Owner.java b/src/main/java/org/springframework/samples/petclinic/owner/Owner.java index 61083bc8d..cceab6f97 100644 --- a/src/main/java/org/springframework/samples/petclinic/owner/Owner.java +++ b/src/main/java/org/springframework/samples/petclinic/owner/Owner.java @@ -61,6 +61,22 @@ public class Owner extends Person { @OneToMany(cascade = CascadeType.ALL, mappedBy = "owner") private Set pets; + + private int age; + + + + public int getAge() { + return age; + } + + public void setAge(int age) { + this.age = age; + } + + public void setPets(Set pets) { + this.pets = pets; + } public String getAddress() { return this.address;