Fix broken unit test

This commit is contained in:
jamesagnew 2015-03-24 20:59:34 -04:00
parent f9b8432d65
commit 92c0859eaa
1 changed files with 1 additions and 1 deletions

View File

@ -1279,7 +1279,7 @@ public abstract class BaseFhirResourceDao<T extends IResource> extends BaseFhirD
Root<ResourceTable> from = cq.from(ResourceTable.class);
cq.multiselect(from.get("myId").as(Long.class));
Predicate typeEquals = builder.equal(from.get("myResourceType"), myResourceName);
Predicate notDeleted = builder.isNotNull(from.get("myDeleted"));
Predicate notDeleted = builder.isNull(from.get("myDeleted"));
cq.where(builder.and(typeEquals, notDeleted));
TypedQuery<Tuple> query = myEntityManager.createQuery(cq);