@Test public void testDeleteRaxaAlert() { RaxaAlert rAlert = new RaxaAlert(); rAlert.setName("TestList2"); rAlert.setId(2); rAlert.setDescription("Second Test List"); rAlert.setCreator(Context.getUserContext().getAuthenticatedUser()); rAlert.setDateCreated(new java.util.Date()); rAlert.setUuid("68547121-1b70-465c-99ee-c9dfd95e7d30"); rAlert.setVoided(Boolean.FALSE); rAlert.setProviderSentId(1); rAlert.setProviderRecipientId(2); dao.deleteRaxaAlert(rAlert); RaxaAlert result = dao.getRaxaAlert(2); assertEquals(null, result); }
@Override public void deleteRaxaAlert(RaxaAlert raxaAlert) throws DAOException { sessionFactory.getCurrentSession().delete(raxaAlert); }
HibernateRaxaAlertDAO implements RaxaAlertDAO { @Override public void deleteRaxaAlert(RaxaAlert raxaAlert) throws DAOException { sessionFactory.getCurrentSession().delete(raxaAlert); } }
HibernateRaxaAlertDAO implements RaxaAlertDAO { @Override public void deleteRaxaAlert(RaxaAlert raxaAlert) throws DAOException { sessionFactory.getCurrentSession().delete(raxaAlert); }  }
HibernateRaxaAlertDAO implements RaxaAlertDAO { @Override public void deleteRaxaAlert(RaxaAlert raxaAlert) throws DAOException { sessionFactory.getCurrentSession().delete(raxaAlert); }  void setSessionFactory(SessionFactory sessionFactory); @Override RaxaAlert saveRaxaAlert(RaxaAlert raxaAlert); @Override void deleteRaxaAlert(RaxaAlert raxaAlert); @Override RaxaAlert getRaxaAlert(Integer raxaAlertId); @Override RaxaAlert getRaxaAlertByUuid(String uuid); @Override List<RaxaAlert> getRaxaAlertByName(String name, boolean includeSeen); @Override List<RaxaAlert> getRaxaAlertByAlertType(String alertType, boolean includeSeen); @Override List<RaxaAlert> getRaxaAlertByPatientId(Integer patientId, boolean includeSeen); @Override List<RaxaAlert> getRaxaAlertByProviderSentId(Integer providerSentId, boolean includeSeen); @Override List<RaxaAlert> getRaxaAlertByProviderRecipientId(Integer providerRecipientId, boolean includeSeen); @Override List<RaxaAlert> getAllRaxaAlerts(boolean includeSeen); @Override RaxaAlert updateRaxaAlert(RaxaAlert raxaAlert); @Override RaxaAlert markRaxaAlertAsSeen(RaxaAlert raxaAlert); @Override RaxaAlert voidRaxaAlert(RaxaAlert raxaAlert, String reason); @Override List<RaxaAlert> getRaxaAlertByToLocationId(Integer id, boolean includeSeen); }
HibernateRaxaAlertDAO implements RaxaAlertDAO { @Override public void deleteRaxaAlert(RaxaAlert raxaAlert) throws DAOException { sessionFactory.getCurrentSession().delete(raxaAlert); }  void setSessionFactory(SessionFactory sessionFactory); @Override RaxaAlert saveRaxaAlert(RaxaAlert raxaAlert); @Override void deleteRaxaAlert(RaxaAlert raxaAlert); @Override RaxaAlert getRaxaAlert(Integer raxaAlertId); @Override RaxaAlert getRaxaAlertByUuid(String uuid); @Override List<RaxaAlert> getRaxaAlertByName(String name, boolean includeSeen); @Override List<RaxaAlert> getRaxaAlertByAlertType(String alertType, boolean includeSeen); @Override List<RaxaAlert> getRaxaAlertByPatientId(Integer patientId, boolean includeSeen); @Override List<RaxaAlert> getRaxaAlertByProviderSentId(Integer providerSentId, boolean includeSeen); @Override List<RaxaAlert> getRaxaAlertByProviderRecipientId(Integer providerRecipientId, boolean includeSeen); @Override List<RaxaAlert> getAllRaxaAlerts(boolean includeSeen); @Override RaxaAlert updateRaxaAlert(RaxaAlert raxaAlert); @Override RaxaAlert markRaxaAlertAsSeen(RaxaAlert raxaAlert); @Override RaxaAlert voidRaxaAlert(RaxaAlert raxaAlert, String reason); @Override List<RaxaAlert> getRaxaAlertByToLocationId(Integer id, boolean includeSeen);  }