package org.fao.fenix.commons.msd.dto.full;

import com.fasterxml.jackson.annotation.JsonProperty;
import org.fao.fenix.commons.annotations.Description;
import org.fao.fenix.commons.annotations.Label;
import org.fao.fenix.commons.msd.dto.JSONEntity;

import javax.persistence.Embedded;
import java.io.Serializable;
import java.util.Map;

public class SeReferencePopulation extends JSONEntity implements Serializable {

    @JsonProperty
    @Label(en="")
    @Description(en= "")
    private Map<String, String> statisticalPopulation;

    @JsonProperty
    @Label(en="")
    @Description(en= "")
    private Map<String, String> statisticalUnit;

    @JsonProperty
    @Label(en="")
    @Description(en= "")
    private OjCodeList referencePeriod;

    @JsonProperty
    @Label(en="")
    @Description(en= "")
    private OjCodeList referenceArea;


    public Map<String, String> getStatisticalPopulation() {
        return statisticalPopulation;
    }

    public void setStatisticalPopulation(Map<String, String> statisticalPopulation) {
        this.statisticalPopulation = statisticalPopulation;
    }

    public Map<String, String> getStatisticalUnit() {
        return statisticalUnit;
    }

    public void setStatisticalUnit(Map<String, String> statisticalUnit) {
        this.statisticalUnit = statisticalUnit;
    }

    public OjCodeList getReferencePeriod() {
        return referencePeriod;
    }
    @Embedded
    public void setReferencePeriod(OjCodeList referencePeriod) {
        this.referencePeriod = referencePeriod;
    }

    public OjCodeList getReferenceArea() {
        return referenceArea;
    }
    @Embedded
    public void setReferenceArea(OjCodeList referenceArea) {
        this.referenceArea = referenceArea;
    }
}

@@ -437,32 +437,54 @@
 %0A    @Label(en=%22
+Statistical population
 %22)%0A    @Descript
@@ -484,32 +484,99 @@
 escription(en= %22
+Target statistical population (one or more) the resource refers to.
 %22)%0A    private M
@@ -643,32 +643,48 @@
 %0A    @Label(en=%22
+Statistical unit
 %22)%0A    @Descript
@@ -684,32 +684,127 @@
 escription(en= %22
+Simplest unit for which information is sought and for which statistics are ultimately compiled.
 %22)%0A    private M
@@ -865,32 +865,51 @@
 %0A    @Label(en=%22
+Period of reference
 %22)%0A    @Descript
@@ -909,32 +909,176 @@
 escription(en= %22
+Specific time periods (e.g. a day, a week, a month, a %0Cscal year, a calendar year or several calendar years) the statistical variables refer to.
 %22)%0A    private O
@@ -1138,16 +1138,33 @@
 bel(en=%22
+Area of reference
 %22)%0A    @
@@ -1180,18 +1180,330 @@
 on(en= %22
-%22)
+Type of geographical units the resource represents or refers to. Note that the spatial resolution must refer to the minimum mapping unit whose bounds are o%0Ecially recognized indipendently from the measurement process of the phonomenon taken into account. Examples are: countries, administrative level 2, etc.%22)    
 %0A    pri

Update SeReferencePopulation.java