Fix test
This commit is contained in:
parent
b0d19c3a65
commit
f64337b651
|
@ -349,6 +349,12 @@ public abstract class BaseHapiTerminologySvc implements IHapiTerminologySvc {
|
||||||
ourLog.info("Saving {} deferred concept relationships...", count);
|
ourLog.info("Saving {} deferred concept relationships...", count);
|
||||||
while (relCount < count && myConceptLinksToSaveLater.size() > 0) {
|
while (relCount < count && myConceptLinksToSaveLater.size() > 0) {
|
||||||
TermConceptParentChildLink next = myConceptLinksToSaveLater.remove(0);
|
TermConceptParentChildLink next = myConceptLinksToSaveLater.remove(0);
|
||||||
|
|
||||||
|
if (myConceptDao.findOne(next.getChild().getId()) == null || myConceptDao.findOne(next.getParent().getId()) == null) {
|
||||||
|
ourLog.warn("Not inserting link from child {} to parent {} because it appears to have been deleted", next.getParent().getCode(), next.getChild().getCode());
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
saveConceptLink(next);
|
saveConceptLink(next);
|
||||||
relCount++;
|
relCount++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue