@Test public void testDeletePatientList() { PatientList pList = new PatientList(); pList.setId(2); pList.setName("TestList2"); pList.setDescription("Second Test List"); pList.setCreator(Context.getUserContext().getAuthenticatedUser()); pList.setDateCreated(new java.util.Date()); pList.setUuid("68547121-1b70-465e-99ee-c9dfd95e7d30"); pList.setRetired(Boolean.FALSE); pList.setSearchQuery(""); dao.deletePatientList(pList); PatientList result = dao.getPatientList(2); assertEquals(null, result); }
@Override public void deletePatientList(PatientList patientList) throws DAOException { sessionFactory.getCurrentSession().delete(patientList); }
HibernatePatientListDAO implements PatientListDAO { @Override public void deletePatientList(PatientList patientList) throws DAOException { sessionFactory.getCurrentSession().delete(patientList); } }
HibernatePatientListDAO implements PatientListDAO { @Override public void deletePatientList(PatientList patientList) throws DAOException { sessionFactory.getCurrentSession().delete(patientList); }  }
HibernatePatientListDAO implements PatientListDAO { @Override public void deletePatientList(PatientList patientList) throws DAOException { sessionFactory.getCurrentSession().delete(patientList); }  void setSessionFactory(SessionFactory sessionFactory); @Override PatientList savePatientList(PatientList patientList); @Override void deletePatientList(PatientList patientList); @Override PatientList getPatientList(Integer patientListId); @Override List<PatientList> getPatientListByEncounterType(EncounterType encounterType); @Override PatientList getPatientListByUuid(String uuid); @Override List<PatientList> getPatientListByName(String name); @Override List<PatientList> getAllPatientList(boolean includeRetired); @Override PatientList updatePatientList(PatientList patientList); }
HibernatePatientListDAO implements PatientListDAO { @Override public void deletePatientList(PatientList patientList) throws DAOException { sessionFactory.getCurrentSession().delete(patientList); }  void setSessionFactory(SessionFactory sessionFactory); @Override PatientList savePatientList(PatientList patientList); @Override void deletePatientList(PatientList patientList); @Override PatientList getPatientList(Integer patientListId); @Override List<PatientList> getPatientListByEncounterType(EncounterType encounterType); @Override PatientList getPatientListByUuid(String uuid); @Override List<PatientList> getPatientListByName(String name); @Override List<PatientList> getAllPatientList(boolean includeRetired); @Override PatientList updatePatientList(PatientList patientList);  }