From 9c712f2f0e73f895f137ea33413a2dfe3498a81e Mon Sep 17 00:00:00 2001 From: jamesagnew Date: Fri, 8 Jan 2016 06:47:15 -0500 Subject: [PATCH] Fix example --- .../src/main/java/ca/uhn/fhir/jpa/demo/JpaServerDemo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hapi-fhir-jpaserver-example/src/main/java/ca/uhn/fhir/jpa/demo/JpaServerDemo.java b/hapi-fhir-jpaserver-example/src/main/java/ca/uhn/fhir/jpa/demo/JpaServerDemo.java index 1fba41b8d2b..2843d66da68 100644 --- a/hapi-fhir-jpaserver-example/src/main/java/ca/uhn/fhir/jpa/demo/JpaServerDemo.java +++ b/hapi-fhir-jpaserver-example/src/main/java/ca/uhn/fhir/jpa/demo/JpaServerDemo.java @@ -47,7 +47,7 @@ public class JpaServerDemo extends RestfulServer { * * If you want to use DSTU1 instead, change the following line, and change the 2 occurrences of dstu2 in web.xml to dstu1 */ - FhirVersionEnum fhirVersion = FhirVersionEnum.DSTU2_1; + FhirVersionEnum fhirVersion = FhirVersionEnum.DSTU2; setFhirContext(new FhirContext(fhirVersion)); // Get the spring context from the web container (it's declared in web.xml) @@ -79,7 +79,7 @@ public class JpaServerDemo extends RestfulServer { if (fhirVersion == FhirVersionEnum.DSTU1) { systemProvider = myAppCtx.getBean("mySystemProviderDstu1", JpaSystemProviderDstu1.class); } else if (fhirVersion == FhirVersionEnum.DSTU2) { - systemProvider = myAppCtx.getBean("mySystemProviderDstu1", JpaSystemProviderDstu2.class); + systemProvider = myAppCtx.getBean("mySystemProviderDstu2", JpaSystemProviderDstu2.class); } else if (fhirVersion == FhirVersionEnum.DSTU2_1) { systemProvider = myAppCtx.getBean("mySystemProviderDstu21", JpaSystemProviderDstu21.class); } else {