package au.gov.ga.geodesy.igssitelog.domain.model;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Transient;
import javax.validation.constraints.Size;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.vividsolutions.jts.geom.Point;

/**
 * http://sopac.ucsd.edu/ns/geodesy/doc/igsSiteLog/monumentInfo/2004/siteLocation.xsd:siteLocationType.approximatePositionITRF
 */
@Embeddable
public class ApproximatePosition {

    /* @Column(name = "GEOM") */
    @Transient
    @JsonIgnore
    private Point grs80;

    @Size(max = 200)
    @Column(name = "ELEVATION_GRS80", length = 200)
    private String elevationGrs80;

    @Column(name = "ITRF_X")
    private Double itrfX;

    @Column(name = "ITRF_Y")
    private Double itrfY;

    @Column(name = "ITRF_Z")
    private Double itrfZ;

    /**
     * Return approximate (latidue,longitude) on the GRS80 ellipsoid.
     */
    public Point getGrs80() {
        return grs80;
    }

    /**
     * Set approximate (latitude,longitude) on the GRS80 ellipsoid.
     */
    public void setGrs80(Point p) {
        grs80 = p;
    }

    /**
     * Return approximate elevation in metres from the GRS80 ellipsoid.
     */
    public String getElevationGrs80() {
        return elevationGrs80;
    }

    /**
     * Set approximate elevation in meters from the GRS80 ellipsoid.
     */
    public void setElevationGrs80(String x) {
        elevationGrs80 = x;
    }

    /**
     * Return approximate ITRF x coordinate in meters.
     */
    public Double getItrfX() {
        return itrfX;
    }

    /**
     * Set approximate ITRF x coordinate in meters.
     */
    public void setItrfX(Double x) {
        itrfX = x;
    }

    /**
     * Return approximate ITRF y coordinate in meters.
     */
    public Double getItrfY() {
        return itrfY;
    }

    /**
     * Set approximate ITRF y coordinate in meters.
     */
    public void setItrfY(Double y) {
        itrfY = y;
    }

    /**
     * Return approximate ITRF z coordinate in meters.
     */
    public Double getItrfZ() {
        return itrfZ;
    }

    /**
     * Set approximate ITRF z coordinate in meters.
     */
    public void setItrfZ(Double z) {
        itrfZ = z;
    }
}

package au.gov.ga.geodesy.igssitelog.domain.model;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Transient;
import javax.validation.constraints.Size;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.vividsolutions.jts.geom.Point;

/**
 * http://sopac.ucsd.edu/ns/geodesy/doc/igsSiteLog/monumentInfo/2004/siteLocation.xsd:siteLocationType.approximatePositionITRF
 */
@Embeddable
public class ApproximatePosition {

    /* @Column(name = "GEOM") */
    @Transient
    private Point grs80;

    @Size(max = 200)
    @Column(name = "ELEVATION_GRS80", length = 200)
    private String elevationGrs80;

    @Column(name = "ITRF_X")
    private Double itrfX;

    @Column(name = "ITRF_Y")
    private Double itrfY;

    @Column(name = "ITRF_Z")
    private Double itrfZ;

    /**
     * Return approximate (latidue,longitude) on the GRS80 ellipsoid.
     */
    public Point getGrs80() {
        return grs80;
    }

    /**
     * Set approximate (latitude,longitude) on the GRS80 ellipsoid.
     */
    public void setGrs80(Point p) {
        grs80 = p;
    }

    /**
     * Return approximate elevation in metres from the GRS80 ellipsoid.
     */
    public String getElevationGrs80() {
        return elevationGrs80;
    }

    /**
     * Set approximate elevation in meters from the GRS80 ellipsoid.
     */
    public void setElevationGrs80(String x) {
        elevationGrs80 = x;
    }

    /**
     * Return approximate ITRF x coordinate in meters.
     */
    public Double getItrfX() {
        return itrfX;
    }

    /**
     * Set approximate ITRF x coordinate in meters.
     */
    public void setItrfX(Double x) {
        itrfX = x;
    }

    /**
     * Return approximate ITRF y coordinate in meters.
     */
    public Double getItrfY() {
        return itrfY;
    }

    /**
     * Set approximate ITRF y coordinate in meters.
     */
    public void setItrfY(Double y) {
        itrfY = y;
    }

    /**
     * Return approximate ITRF z coordinate in meters.
     */
    public Double getItrfZ() {
        return itrfZ;
    }

    /**
     * Set approximate ITRF z coordinate in meters.
     */
    public void setItrfZ(Double z) {
        itrfZ = z;
    }
}

Remove an unnecessary JsonIgnore tag.