IResource and IAnyResource are mutually exclusive...

This commit is contained in:
Ken Stevens 2019-07-17 14:25:10 -04:00 committed by James Agnew
parent 465b4daa03
commit c73aebe0a0
1 changed files with 3 additions and 1 deletions

View File

@ -1238,7 +1238,9 @@ public abstract class BaseHapiFhirDao<T extends IBaseResource> implements IDao,
}
protected void addPidToResource(ResourceTable theEntity, IBaseResource theResource) {
if (theResource instanceof IResource) {
if (theResource instanceof IAnyResource) {
IDao.RESOURCE_PID.put((IAnyResource) theResource, theEntity.getId());
} else if (theResource instanceof IResource) {
IDao.RESOURCE_PID.put((IResource) theResource, theEntity.getId());
}
}