Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public List<DocumentDB> findByDateAndYear2 (int month ,int year ,UserUidDB userUID) {
- List<DocumentDB> historyTotal = null;
- try {
- DAO.begin();
- historyTotal = (List<DocumentDB>) DAO.getEntityManager().createNamedQuery("getHistoryTotalByMonthAndYear2")
- .setParameter("monthDoc", month)
- .setParameter("yearDoc", year)
- .setParameter("creator", userUID)
- .getResultList();
- } catch (Exception e) {
- logger.error("Invalid month/year loading with "+month+"/"+year , e);
- } finally {
- DAO.close();
- }
- return historyTotal;
- }
Advertisement
Add Comment
Please, Sign In to add comment