From 92a070430a2d45edff787499b4c6a1d1c1b052eb Mon Sep 17 00:00:00 2001 From: Robbert van Waveren Date: Thu, 13 Oct 2016 12:03:48 +0200 Subject: [PATCH] fix resources links being correctly indexed when linking eachother as part of a single transaction bundle --- .../src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java index 3ce1acb1c1a..e1ae359e956 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java @@ -1415,6 +1415,8 @@ public abstract class BaseHapiFhirDao implements IDao { for (ResourceLink next : links) { myEntityManager.persist(next); } + // make sure links are indexed + theEntity.setResourceLinks(links); } // if thePerformIndexing