Open hsolbrig opened 5 years ago
The following at least partially fixes it:
--- a/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/FhirServerConfigR4.java
+++ b/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/FhirServerConfigR4.java
@@ -2,6 +2,7 @@ package ca.uhn.fhir.jpa.demo;
import ca.uhn.fhir.jpa.config.BaseJavaConfigR4;
import ca.uhn.fhir.jpa.dao.DaoConfig;
+import ca.uhn.fhir.jpa.model.entity.ModelConfig;
import ca.uhn.fhir.jpa.util.SubscriptionsRequireManualActivationInterceptorR4;
import ca.uhn.fhir.rest.server.interceptor.IServerInterceptor;
import ca.uhn.fhir.rest.server.interceptor.LoggingInterceptor;
@@ -52,6 +53,12 @@ public class FhirServerConfigR4 extends BaseJavaConfigR4 {
return retVal;
}
+
+ @Bean
+ public ModelConfig modelConfig() {
+ return daoConfig().getModelConfig();
+ }
+
@Override
@Bean
public LocalContainerEntityManagerFactoryBean entityManagerFactory() {
NOTE: Before filing a ticket, please see the following URL: https://github.com/jamesagnew/hapi-fhir/wiki/Getting-Help
Describe the bug hapi-fhir-cli has unsatisfied dependency
To Reproduce Steps to reproduce the behavior:
Expected behavior Server starts
Screenshots
Environment (please complete the following information): Java 1.8.0_66 (but appears to fail on same error on 10.0.2) Mac osx Mojave 10.14.4