|
|
@ -3,46 +3,41 @@
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>space.kklochko</groupId>
|
|
|
|
<groupId>space.kklochko</groupId>
|
|
|
|
<artifactId>jpa_hospital_example</artifactId>
|
|
|
|
<artifactId>spring_rest_example</artifactId>
|
|
|
|
<version>2.0.1</version>
|
|
|
|
<version>2.0.1</version>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
<packaging>war</packaging>
|
|
|
|
<name>Example of using jpa for a hostpital.</name>
|
|
|
|
<name>Example of using jpa for a hostpital.</name>
|
|
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<properties>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
|
<groovy.version>4.0.15</groovy.version>
|
|
|
|
<groovy.version>4.0.15</groovy.version>
|
|
|
|
<maven.compiler.source>17</maven.compiler.source>
|
|
|
|
<maven.compiler.source>11</maven.compiler.source>
|
|
|
|
<maven.compiler.target>17</maven.compiler.target>
|
|
|
|
<maven.compiler.target>11</maven.compiler.target>
|
|
|
|
|
|
|
|
<spring.version>5.2.3.RELEASE</spring.version>
|
|
|
|
|
|
|
|
<hibernate.version>5.4.1.Final</hibernate.version>
|
|
|
|
</properties>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<build>
|
|
|
|
|
|
|
|
<finalName>SpringRestExample</finalName>
|
|
|
|
<plugins>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-jar-plugin</artifactId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<version>3.2.2</version>
|
|
|
|
<version>3.1</version>
|
|
|
|
<configuration>
|
|
|
|
<configuration>
|
|
|
|
<archive>
|
|
|
|
<source>11</source>
|
|
|
|
<manifest>
|
|
|
|
<target>11</target>
|
|
|
|
<mainClass>space.kklochko.jpa_hospital_example.Main</mainClass>
|
|
|
|
|
|
|
|
<addClasspath>true</addClasspath>
|
|
|
|
|
|
|
|
</manifest>
|
|
|
|
|
|
|
|
</archive>
|
|
|
|
|
|
|
|
</configuration>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
|
<version>3.4.1</version>
|
|
|
|
<version>3.2.3</version>
|
|
|
|
<executions>
|
|
|
|
<configuration>
|
|
|
|
<execution>
|
|
|
|
<warSourceDirectory>src/main/webapp</warSourceDirectory>
|
|
|
|
<phase>package</phase>
|
|
|
|
<warName>SpringRestExample</warName>
|
|
|
|
<goals>
|
|
|
|
</configuration>
|
|
|
|
<goal>shade</goal>
|
|
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
|
|
</plugin>
|
|
|
|
</plugin>
|
|
|
|
<!-- Mandatory plugins for using Spock -->
|
|
|
|
<!-- Mandatory plugins for using Spock -->
|
|
|
|
<plugin>
|
|
|
|
<plugin>
|
|
|
@ -105,6 +100,45 @@
|
|
|
|
</dependencyManagement>
|
|
|
|
</dependencyManagement>
|
|
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
<dependencies>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
|
|
|
|
<artifactId>spring-core</artifactId>
|
|
|
|
|
|
|
|
<version>5.3.19</version>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
|
|
|
|
<artifactId>spring-webmvc</artifactId>
|
|
|
|
|
|
|
|
<version>5.2.3.RELEASE</version>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>org.springframework</groupId>
|
|
|
|
|
|
|
|
<artifactId>spring-test</artifactId>
|
|
|
|
|
|
|
|
<version>5.2.3.RELEASE</version>
|
|
|
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
|
|
|
|
|
|
<artifactId>jackson-databind</artifactId>
|
|
|
|
|
|
|
|
<version>2.9.10.1</version>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
|
|
|
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
|
|
|
|
|
|
<version>3.0.1</version>
|
|
|
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>log4j</groupId>
|
|
|
|
|
|
|
|
<artifactId>log4j</artifactId>
|
|
|
|
|
|
|
|
<version>1.2.17</version>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
|
|
<groupId>jakarta.servlet</groupId>
|
|
|
|
|
|
|
|
<artifactId>jakarta.servlet-api</artifactId>
|
|
|
|
|
|
|
|
<version>6.0.0</version>
|
|
|
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.hibernate.orm</groupId>
|
|
|
|
<groupId>org.hibernate.orm</groupId>
|
|
|
|
<artifactId>hibernate-core</artifactId>
|
|
|
|
<artifactId>hibernate-core</artifactId>
|
|
|
|