Merge pull request #467 from Robbert1/transaction-index-links

fix resources links being correctly indexed when linking eachother as part of a single transaction bundle
This commit is contained in:
James Agnew 2017-01-20 19:12:18 -05:00 committed by GitHub
commit bde8aebc5a
1 changed files with 2 additions and 0 deletions

View File

@ -1431,6 +1431,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);
theEntity.toString();