=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataset/DataSet.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataset/DataSet.java 2011-05-05 21:14:56 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataset/DataSet.java 2011-05-08 22:34:28 +0000 @@ -35,6 +35,7 @@ import org.hisp.dhis.dataelement.DataElement; import org.hisp.dhis.dataelement.DataElementOperand; import org.hisp.dhis.dataentryform.DataEntryForm; +import org.hisp.dhis.indicator.Indicator; import org.hisp.dhis.organisationunit.OrganisationUnit; import org.hisp.dhis.period.PeriodType; @@ -64,6 +65,12 @@ private Collection dataElements = new HashSet(); /** + * Indicators associated with this data set. Indicators are used for view and + * output purposes, such as calculated fields in forms and reports. + */ + private Set indicators = new HashSet(); + + /** * The DataElementOperands for which data must be entered in order for the * DataSet to be considered as complete. */ @@ -230,6 +237,16 @@ this.dataElements = dataElements; } + public Set getIndicators() + { + return indicators; + } + + public void setIndicators( Set indicators ) + { + this.indicators = indicators; + } + public Set getCompulsoryDataElementOperands() { return compulsoryDataElementOperands; === modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataset/hibernate/DataSet.hbm.xml' --- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataset/hibernate/DataSet.hbm.xml 2011-05-02 14:48:05 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataset/hibernate/DataSet.hbm.xml 2011-05-08 22:34:28 +0000 @@ -30,6 +30,11 @@ + + + + +