=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElement.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElement.java 2012-01-30 20:16:08 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElement.java 2012-02-03 08:35:56 +0000 @@ -38,6 +38,7 @@ import org.hisp.dhis.common.adapter.DataElementGroupXmlAdapter; import org.hisp.dhis.common.adapter.DataSetXmlAdapter; import org.hisp.dhis.dataset.DataSet; +import org.hisp.dhis.option.OptionSet; import org.hisp.dhis.period.PeriodType; import org.hisp.dhis.period.YearlyPeriodType; @@ -167,9 +168,14 @@ private boolean zeroIsSignificant; /** - * Set of the dynamic attributes values that belong to this dataElement. + * Set of the dynamic attributes values that belong to this data element. */ private Set attributeValues = new HashSet(); + + /** + * The option set for this data element. + */ + private OptionSet optionSet; // ------------------------------------------------------------------------- // Constructors @@ -550,4 +556,14 @@ { this.attributeValues = attributeValues; } + + public OptionSet getOptionSet() + { + return optionSet; + } + + public void setOptionSet( OptionSet optionSet ) + { + this.optionSet = optionSet; + } } === modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataelement/hibernate/DataElement.hbm.xml' --- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataelement/hibernate/DataElement.hbm.xml 2011-11-23 18:07:35 +0000 +++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/dataelement/hibernate/DataElement.hbm.xml 2012-02-03 08:35:56 +0000 @@ -68,5 +68,8 @@ + +