/** * @see org.openmrs.api.AdministrationService#updateReport(org.openmrs.reporting.Report) * @deprecated see reportingcompatibility module */ @Deprecated public void updateReport(Report r) throws DAOException { if (r.getReportId() == null) createReport(r); else { sessionFactory.getCurrentSession().saveOrUpdate(r); } }
/** * @see org.openmrs.api.AdministrationService#createReport(org.openmrs.reporting.Report) * @deprecated see reportingcompatibility module */ @Deprecated public void createReport(Report r) throws DAOException { r.setCreator(Context.getAuthenticatedUser()); r.setDateCreated(new Date()); sessionFactory.getCurrentSession().save(r); }