use of org.hisp.dhis.dataset.DataInputPeriod in project dhis2-core by dhis2.
the class DataInputPeriodObjectBundleHook method setPeriod.
private void setPeriod(IdentifiableObject object) {
DataInputPeriod dataInputPeriod = (DataInputPeriod) object;
Period period = periodService.getPeriod(dataInputPeriod.getPeriod().getIsoDate());
dataInputPeriod.setPeriod(period);
sessionFactory.getCurrentSession().save(period);
}
Aggregations