@Transactional() public boolean removePatientFolder(int uuid) { Patient patient = patientDAO.findPatientByUuid(uuid); if (patient == null) { return false; } patientDAO.remove(patient); return true; }
@Transactional() public void updatePatient(Patient patient) { patientDAO.merge(patient); }
@Transactional() public void createPatient(Patient patient) { patientDAO.persist(patient); }
@Transactional() public Patient findPatientByUuid(int uuid) { return patientDAO.findPatientByUuid(uuid); }
@Transactional() public List<Patient> searchPatientByFirstName(String firstName) { return patientDAO.searchPatientByFirstName(firstName); }
@Transactional() public List<Patient> getAllPatient() { return patientDAO.getAllPatient(); }
@Transactional() public void deletePatient(Patient patient) { patientDAO.remove(patient); }