List of usage examples for org.springframework.transaction UnexpectedRollbackException printStackTrace
public void printStackTrace()
From source file:org.openmrs.module.tracdataquality.web.controller.DataQualityByCheckTypeController.java
/** * gets patients Without any Program/*from w ww .j a va2s. c o m*/ * * @param session * @return patients */ public List<Patient> getPatientWithoutProgram() { DataQualityService dqs = ((DataQualityService) Context.getService(DataQualityService.class)); List<Patient> patientList = new ArrayList<Patient>(); try { patientList = dqs.getPatientsWithNoProgram(); } catch (UnexpectedRollbackException unre) { unre.printStackTrace(); } return patientList; }