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 OjCode extends JSONEntity implements Serializable {

    private Code linkedCode;

    @JsonProperty
    @Label(en="")
    @Description(en="")
    private String code;

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



    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Map<String, String> getLabel() {
        return label;
    }

    public void setLabel(Map<String, String> label) {
        this.label = label;
    }

    public Code getLinkedCode() {
        return linkedCode;
    }

    public void setLinkedCode(Code linkedCode) {
        this.linkedCode = linkedCode;
    }
}

@@ -481,32 +481,36 @@
 %0A    @Label(en=%22
+Code
 %22)%0A    @Descript
@@ -509,32 +509,122 @@
 Description(en=%22
+Alphanumeric sequence of characters that uniquely identify an attribute within a codelist.
 %22)%0A    private S
@@ -665,24 +665,29 @@
  @Label(en=%22
+Label
 %22)%0A    @Desc
@@ -698,16 +698,75 @@
 ion(en=%22
+Descriptive term associated to each code within a codelist.
 %22)%0A    p

Update OjCode.java