diff --git a/j-lawyer-server/j-lawyer-server-ejb/src/java/com/jdimension/jlawyer/persistence/ArchiveFileReviewsBeanFacade.java b/j-lawyer-server/j-lawyer-server-ejb/src/java/com/jdimension/jlawyer/persistence/ArchiveFileReviewsBeanFacade.java index 1c5353b13..648e897ea 100644 --- a/j-lawyer-server/j-lawyer-server-ejb/src/java/com/jdimension/jlawyer/persistence/ArchiveFileReviewsBeanFacade.java +++ b/j-lawyer-server/j-lawyer-server-ejb/src/java/com/jdimension/jlawyer/persistence/ArchiveFileReviewsBeanFacade.java @@ -695,13 +695,7 @@ public List findByArchiveFileKey(ArchiveFileBean archive @Override public List findByArchiveFileKeyAndDone(ArchiveFileBean archiveFileKey, boolean done) { - - short isDone = 0; - if (done) { - isDone = 1; - } - - return getEntityManager().createQuery("from ArchiveFileReviewsBean where archiveFileKey = ?1 and done = ?2 order by beginDate asc").setParameter(1, archiveFileKey).setParameter(2, isDone).getResultList(); + return getEntityManager().createQuery("from ArchiveFileReviewsBean where archiveFileKey = ?1 and done = ?2 order by beginDate asc").setParameter(1, archiveFileKey).setParameter(2, done).getResultList(); } @Override @@ -712,11 +706,7 @@ public List findByCalendarSetup(CalendarSetup setup) { @Override public List findByDone(boolean done) { - short isDone = 0; - if (done) { - isDone = 1; - } - return (List) em.createNamedQuery("ArchiveFileReviewsBean.findByDone").setParameter("done", isDone).getResultList(); + return (List) em.createNamedQuery("ArchiveFileReviewsBean.findByDone").setParameter("done", done).getResultList(); } }