Commit 10ec6243 authored by michael.simon's avatar michael.simon
Browse files

should be null to really find auditlogs without parent

parent 57462e7c
...@@ -29,7 +29,7 @@ public class JpaAuditEntryDao extends JpaBaseDao<AuditEntryEntity, Long> impleme ...@@ -29,7 +29,7 @@ public class JpaAuditEntryDao extends JpaBaseDao<AuditEntryEntity, Long> impleme
@Override @Override
@SuppressWarnings({"unchecked"}) @SuppressWarnings({"unchecked"})
public List<AuditEntryEntity> findAllOlderThan(Date date, int limit) { public List<AuditEntryEntity> findAllOlderThan(Date date, int limit) {
return em.createQuery("select e from AuditEntryEntity e where parentEntry is not null and endTime < :date order by endTime asc") return em.createQuery("select e from AuditEntryEntity e where parentEntry is null and endTime < :date order by endTime asc")
.setParameter("date", date).setMaxResults(limit).getResultList(); .setParameter("date", date).setMaxResults(limit).getResultList();
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment