diff --git a/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples/hapi-fhir-spring-boot-sample-server-jpa/pom.xml b/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples/hapi-fhir-spring-boot-sample-server-jpa/pom.xml deleted file mode 100644 index 7cce690c57d..00000000000 --- a/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples/hapi-fhir-spring-boot-sample-server-jpa/pom.xml +++ /dev/null @@ -1,75 +0,0 @@ - - 4.0.0 - - - ca.uhn.hapi.fhir - hapi-fhir-spring-boot-samples - 5.3.0-SNAPSHOT - - - hapi-fhir-spring-boot-sample-server-jpa - - jar - - - - - org.springframework.boot - spring-boot-starter-web - - - org.springframework.boot - spring-boot-starter-actuator - - - org.springframework.boot - spring-boot-starter-jersey - - - org.springframework.boot - spring-boot-starter-data-jpa - - - ca.uhn.hapi.fhir - hapi-fhir-spring-boot-starter - ${project.version} - - - ca.uhn.hapi.fhir - hapi-fhir-jpaserver-base - ${project.version} - - - ca.uhn.hapi.fhir - hapi-fhir-jaxrsserver-base - ${project.version} - - - com.h2database - h2 - - - - org.springframework.boot - spring-boot-configuration-processor - true - - - - org.springframework.boot - spring-boot-starter-test - test - - - - - - - org.springframework.boot - spring-boot-maven-plugin - - - - - diff --git a/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples/hapi-fhir-spring-boot-sample-server-jpa/src/main/java/sample/fhir/server/jpa/SampleJpaRestfulServerApplication.java b/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples/hapi-fhir-spring-boot-sample-server-jpa/src/main/java/sample/fhir/server/jpa/SampleJpaRestfulServerApplication.java deleted file mode 100644 index 721e4b8d3a1..00000000000 --- a/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples/hapi-fhir-spring-boot-sample-server-jpa/src/main/java/sample/fhir/server/jpa/SampleJpaRestfulServerApplication.java +++ /dev/null @@ -1,12 +0,0 @@ -package sample.fhir.server.jpa; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; - -@SpringBootApplication -public class SampleJpaRestfulServerApplication { - - public static void main(String[] args) { - SpringApplication.run(SampleJpaRestfulServerApplication.class, args); - } -} diff --git a/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples/hapi-fhir-spring-boot-sample-server-jpa/src/main/resources/application.yml b/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples/hapi-fhir-spring-boot-sample-server-jpa/src/main/resources/application.yml deleted file mode 100644 index b63b06bf401..00000000000 --- a/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples/hapi-fhir-spring-boot-sample-server-jpa/src/main/resources/application.yml +++ /dev/null @@ -1,44 +0,0 @@ -spring: - jpa: - hibernate: - ddl-auto: create-drop - properties: - hibernate.jdbc.batch_size: 20 - hibernate.cache.use_query_cache: false - hibernate.cache.use_second_level_cache: false - hibernate.cache.use_structured_entries: false - hibernate.cache.use_minimal_puts: false - hibernate.search.default.directory_provider: filesystem - hibernate.search.default.indexBase: target/lucenefiles - hibernate.search.lucene_version: LUCENE_CURRENT - hibernate.search.model_mapping: ca.uhn.fhir.jpa.search.LuceneSearchMappingFactory - - main: - allow-bean-definition-overriding: true - h2: - console: - enabled: true - batch: - job: - enabled: false -hapi: - fhir: - version: DSTU3 - server: - path: /fhir/* - rest: - server-name: hapi-fhir-spring-boot-sample-server-jpa - server-version: 1.0.0 - implementation-description: Spring Boot Jpa Server Sample - default-response-encoding: json - e-tag-support: enabled - default-pretty-print: true - validation: - enabled: true - request-only: true - jpa: - scheduling-disabled: true - subscription-enabled: false -management: - security: - enabled: false diff --git a/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples/hapi-fhir-spring-boot-sample-server-jpa/src/test/java/sample/fhir/server/jpa/SampleJpaRestfulServerApplicationTest.java b/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples/hapi-fhir-spring-boot-sample-server-jpa/src/test/java/sample/fhir/server/jpa/SampleJpaRestfulServerApplicationTest.java deleted file mode 100644 index 9db118396dc..00000000000 --- a/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples/hapi-fhir-spring-boot-sample-server-jpa/src/test/java/sample/fhir/server/jpa/SampleJpaRestfulServerApplicationTest.java +++ /dev/null @@ -1,40 +0,0 @@ -package sample.fhir.server.jpa; - -import ca.uhn.fhir.context.FhirContext; -import ca.uhn.fhir.rest.client.api.IGenericClient; -import org.hl7.fhir.dstu3.model.Patient; -import org.hl7.fhir.instance.model.api.IIdType; -import org.junit.jupiter.api.Test; -import org.junit.jupiter.api.extension.ExtendWith; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.boot.test.context.SpringBootTest; -import org.springframework.boot.test.context.SpringBootTest.WebEnvironment; -import org.springframework.boot.web.server.LocalServerPort; -import org.springframework.test.context.junit.jupiter.SpringExtension; - -@ExtendWith(SpringExtension.class) -@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT) -public class SampleJpaRestfulServerApplicationTest { - - @Autowired - FhirContext fhirContext; - - @LocalServerPort - int port; - - @Test - public void createAndRead() { - IGenericClient client = fhirContext.newRestfulGenericClient("http://localhost:" + port + "/fhir"); - - Patient patient = new Patient(); - patient.addName().setFamily("Test"); - IIdType id = client.create().resource(patient).execute().getId(); - - System.out.println(id); - - Patient result = client.read().resource(Patient.class).withId(id).execute(); - - System.out.println(result); - } - -} diff --git a/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples/pom.xml b/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples/pom.xml index c5cceaa2174..0d4600ab39c 100644 --- a/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples/pom.xml +++ b/hapi-fhir-spring-boot/hapi-fhir-spring-boot-samples/pom.xml @@ -15,7 +15,6 @@ hapi-fhir-spring-boot-sample-client-apache hapi-fhir-spring-boot-sample-client-okhttp hapi-fhir-spring-boot-sample-server-jersey - hapi-fhir-spring-boot-sample-server-jpa