fix cyclic package dep
This commit is contained in:
parent
6e276ffc31
commit
fd1be0049a
|
@ -34,7 +34,6 @@ import ca.uhn.fhir.jpa.api.dao.IFhirResourceDao;
|
||||||
import ca.uhn.fhir.jpa.api.svc.IIdHelperService;
|
import ca.uhn.fhir.jpa.api.svc.IIdHelperService;
|
||||||
import ca.uhn.fhir.jpa.model.cross.IBasePersistedResource;
|
import ca.uhn.fhir.jpa.model.cross.IBasePersistedResource;
|
||||||
import ca.uhn.fhir.jpa.model.cross.IResourceLookup;
|
import ca.uhn.fhir.jpa.model.cross.IResourceLookup;
|
||||||
import ca.uhn.fhir.jpa.model.dao.JpaPid;
|
|
||||||
import ca.uhn.fhir.jpa.searchparam.extractor.IResourceLinkResolver;
|
import ca.uhn.fhir.jpa.searchparam.extractor.IResourceLinkResolver;
|
||||||
import ca.uhn.fhir.jpa.searchparam.extractor.PathAndRef;
|
import ca.uhn.fhir.jpa.searchparam.extractor.PathAndRef;
|
||||||
import ca.uhn.fhir.rest.api.server.RequestDetails;
|
import ca.uhn.fhir.rest.api.server.RequestDetails;
|
||||||
|
@ -184,8 +183,8 @@ public class DaoResourceLinkResolver<T extends BaseResourcePersistentId> impleme
|
||||||
valueOf = placeholderResourceDao.create(newResource, theRequest).getEntity();
|
valueOf = placeholderResourceDao.create(newResource, theRequest).getEntity();
|
||||||
}
|
}
|
||||||
|
|
||||||
JpaPid persistentId = (JpaPid) valueOf.getPersistentId();
|
BaseResourcePersistentId persistentId = valueOf.getPersistentId();
|
||||||
persistentId = new JpaPid(persistentId.getId());
|
persistentId = myIdHelperService.newPid(persistentId.getId());
|
||||||
persistentId.setAssociatedResourceId(valueOf.getIdDt());
|
persistentId.setAssociatedResourceId(valueOf.getIdDt());
|
||||||
theTransactionDetails.addResolvedResourceId(persistentId.getAssociatedResourceId(), persistentId);
|
theTransactionDetails.addResolvedResourceId(persistentId.getAssociatedResourceId(), persistentId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue