示例#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);
 }