예제 #1
0
 @Transactional()
 public boolean removePatientFolder(int uuid) {
   Patient patient = patientDAO.findPatientByUuid(uuid);
   if (patient == null) {
     return false;
   }
   patientDAO.remove(patient);
   return true;
 }
예제 #2
0
 @Transactional()
 public void updatePatient(Patient patient) {
   patientDAO.merge(patient);
 }
예제 #3
0
 @Transactional()
 public void createPatient(Patient patient) {
   patientDAO.persist(patient);
 }
예제 #4
0
 @Transactional()
 public Patient findPatientByUuid(int uuid) {
   return patientDAO.findPatientByUuid(uuid);
 }
예제 #5
0
 @Transactional()
 public List<Patient> searchPatientByFirstName(String firstName) {
   return patientDAO.searchPatientByFirstName(firstName);
 }
예제 #6
0
 @Transactional()
 public List<Patient> getAllPatient() {
   return patientDAO.getAllPatient();
 }
예제 #7
0
 @Transactional()
 public void deletePatient(Patient patient) {
   patientDAO.remove(patient);
 }