fix resources links being correctly indexed when linking eachother as part of a single transaction bundle

This commit is contained in:
Robbert van Waveren 2016-10-13 12:03:48 +02:00
parent 7caf9b5ad9
commit 92a070430a
1 changed files with 2 additions and 0 deletions

View File

@ -1415,6 +1415,8 @@ public abstract class BaseHapiFhirDao<T extends IBaseResource> implements IDao {
for (ResourceLink next : links) {
myEntityManager.persist(next);
}
// make sure links are indexed
theEntity.setResourceLinks(links);
} // if thePerformIndexing