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.Collection;
import java.util.Map;

public class SeSecondaryDataCollection extends JSONEntity implements Serializable {

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

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

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

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



    public OjCodeList getOriginOfCollectedData() {
        return originOfCollectedData;
    }
    @Embedded
    public void setOriginOfCollectedData(OjCodeList originOfCollectedData) {
        this.originOfCollectedData = originOfCollectedData;
    }

    public Map<String, String> getOrganization() {
        return organization;
    }
    @Embedded
    public void setOrganization(Map<String, String> organization) {
        this.organization = organization;
    }

    public Map<String, String> getRawDataDescription() {
        return rawDataDescription;
    }

    public void setRawDataDescription(Map<String, String> rawDataDescription) {
        this.rawDataDescription = rawDataDescription;
    }

    public Map<String, String> getDataCollection() {
        return dataCollection;
    }

    public void setDataCollection(Map<String, String> dataCollection) {
        this.dataCollection = dataCollection;
    }
}

@@ -470,32 +470,56 @@
 %0A    @Label(en=%22
+Origin of collected data
 %22)%0A    @Descript
@@ -519,32 +519,115 @@
 escription(en= %22
+Coded element which allows to specify in a standard way the origin of the resource.
 %22)%0A    private O
@@ -685,32 +685,44 @@
 %0A    @Label(en=%22
+Organization
 %22)%0A    @Descript
@@ -722,32 +722,206 @@
 escription(en= %22
+If the element %3C%3CoriginOfCollectedData%3E%3E has been generally specified as 'other International Organizations' this element requests to report the exact source of the resource.
 %22)%0A    private M
@@ -979,32 +979,55 @@
 %0A    @Label(en=%22
+Description of raw data
 %22)%0A    @Descript
@@ -1027,32 +1027,359 @@
 escription(en= %22
+Characteristics and components of the raw statistical data used for compiling statistical aggregates. It indicates if data set is based on a survey or on administrative data source. If administrative registers are used, the description of registers should be given (source, year, primary purpose, potential deficiencies. . . ).
 %22)%0A    private M
@@ -1451,16 +1451,31 @@
 bel(en=%22
+Data collection
 %22)%0A    @
@@ -1491,16 +1491,39 @@
 on(en= %22
+Data collection details
 %22)%0A    p

Update SeSecondaryDataCollection.java