This commit is contained in:
cha7713 2020-04-10 15:29:30 +09:00
parent 56f09331aa
commit 5f9f4e7559
2 changed files with 52 additions and 6 deletions

42
pom.xml
View file

@ -137,12 +137,7 @@
<version>${spring-format.version}</version> <version>${spring-format.version}</version>
<!-- run ./mvnw spring-javaformat:apply to apply --> <!-- run ./mvnw spring-javaformat:apply to apply -->
<executions> <executions>
<execution>
<phase>validate</phase>
<goals>
<goal>validate</goal>
</goals>
</execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
@ -275,6 +270,41 @@
</dependencies> </dependencies>
</plugin> </plugin>
</plugins> </plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>
io.spring.javaformat
</groupId>
<artifactId>
spring-javaformat-maven-plugin
</artifactId>
<versionRange>
[0.0.20,)
</versionRange>
<goals>
<goal>validate</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build> </build>
<!-- Apache 2 license --> <!-- Apache 2 license -->

View file

@ -62,6 +62,22 @@ 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 void setPets(Set<Pet> pets) {
this.pets = pets;
}
public String getAddress() { public String getAddress() {
return this.address; return this.address;
} }