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.Format;
import org.fao.fenix.commons.annotations.Label;
import org.fao.fenix.commons.annotations.Order;
import org.fao.fenix.commons.msd.dto.JSONEntity;

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

public class SeEllipsoid extends JSONEntity implements Serializable {

    @JsonProperty
    @Label(en="Ellipsoid")
    @Description(en= "Identifier of the ellipsoid used.")
    @Order(-1)
    @Format(Format.FORMAT.string)
    private OjCodeList ellipsoid;

    @JsonProperty
    @Label(en="Name of elliosoid")
    @Description(en= "Name of the ellipsoid used.")
    @Order(-1)
    @Format(Format.FORMAT.string)
    private Map<String, String> ellipsoidName;

    @JsonProperty
    @Label(en="Ellipsoid Parameters")
    @Description(en= "Set of parameters that describe the ellipsoid.")
    @Order(-1)
    @Format(Format.FORMAT.string)
    private SeEllipsoidParameters seEllipsoidParameters;


    public OjCodeList getEllipsoid() {
        return ellipsoid;
    }
    @Embedded
    public void setEllipsoid(OjCodeList ellipsoid) {
        this.ellipsoid = ellipsoid;
    }

    public Map<String, String> getEllipsoidName() {
        return ellipsoidName;
    }

    public void setEllipsoidName(Map<String, String> ellipsoidName) {
        this.ellipsoidName = ellipsoidName;
    }

    public SeEllipsoidParameters getSeEllipsoidParameters() {
        return seEllipsoidParameters;
    }
    @Embedded
    public void setSeEllipsoidParameters(SeEllipsoidParameters seEllipsoidParameters) {
        this.seEllipsoidParameters = seEllipsoidParameters;
    }
}

@@ -605,33 +605,32 @@
 d.%22)%0A    @Order(
--
 1)%0A    @Format(F
@@ -793,34 +793,33 @@
 d.%22)%0A    @Order(
--1
+2
 )%0A    @Format(Fo
@@ -1028,10 +1028,9 @@
 der(
--1
+3
 )%0A  

Update SeEllipsoid.java