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;

public class SeEllipsoidParameters extends JSONEntity implements Serializable {

    @JsonProperty
    @Label(en="Semi major axis")
    @Description(en= "Measure of the equatorial axis of the ellipsoid.")
    @Order(-1)
    @Format(Format.FORMAT.string)
    private Double semiMajorAxis;

    @JsonProperty
    @Label(en="Semi-major axis unit of measure")
    @Description(en= "Units of the semi-major axis.")
    @Order(-1)
    @Format(Format.FORMAT.string)
    private OjMeasure axisUnits;

    @JsonProperty
    @Label(en="Deniminator of flattening rate")
    @Description(en= "Ratio between the semi-major axis and the semi-minor axis of an ellipse. Generally an ellipse is completely specified by the measure of the semi-major axis 'a' and the measure of the semi-minor axis 'b'.")
    @Order(-1)
    @Format(Format.FORMAT.string)
    private Double denominatorOfFlatteringRatio;


    public Double getSemiMajorAxis() {
        return semiMajorAxis;
    }

    public void setSemiMajorAxis(Double semiMajorAxis) {
        this.semiMajorAxis = semiMajorAxis;
    }

    public OjMeasure getAxisUnits() {
        return axisUnits;
    }
    @Embedded
    public void setAxisUnits(OjMeasure axisUnits) {
        this.axisUnits = axisUnits;
    }

    public Double getDenominatorOfFlatteringRatio() {
        return denominatorOfFlatteringRatio;
    }

    public void setDenominatorOfFlatteringRatio(Double denominatorOfFlatteringRatio) {
        this.denominatorOfFlatteringRatio = denominatorOfFlatteringRatio;
    }
}

@@ -614,33 +614,32 @@
 d.%22)%0A    @Order(
--
 1)%0A    @Format(F
@@ -818,34 +818,33 @@
 s.%22)%0A    @Order(
--1
+2
 )%0A    @Format(Fo
@@ -1206,10 +1206,9 @@
 der(
--1
+3
 )%0A  

Update SeEllipsoidParameters.java