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

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Type;

import au.gov.ga.geodesy.support.spring.EntityId;

@Entity
@Table(name = "gnss_cors_site")
public class GnssCorsSite extends Site {

    /* @Column(name = "id", length = 36, nullable = false, unique = true) */
    /* @Type(type = "au.gov.ga.geodesy.support.hibernate.EntityIdUserType") */
    /* private EntityId<GnssCorsSite> gnssCorsSiteId; */

    /**
     * Business id
     */
    @Column(name = "four_character_id", length = 4, nullable = false, unique = true)
    private String fourCharacterId;

    /* public EntityId<GnssCorsSite> gnssCorsSiteId() { */
    /*     return gnssCorsSiteId; */
    /* } */

    /* public GnssCorsSite(EntityId<GnssCorsSite> id, String fourCharacterId) { */
    public GnssCorsSite(String fourCharacterId) {
        super();
        /* gnssCorsSiteId = id; */
        setFourCharacterId(fourCharacterId);
    }

    public String getFourCharacterId() {
        return fourCharacterId;
    }

    private void setFourCharacterId(String fourCharacterId) {
        this.fourCharacterId = fourCharacterId;
    }
}

@@ -137,743 +137,357 @@
 e;%0A%0A
-import org.hibernate.annotations.Type;%0A%0Aimport au.gov.ga.geodesy.support.spring.EntityId;%0A%0A@Entity%0A@Table(name = %22gnss_cors_site%22)%0Apublic class GnssCorsSite extends Site %7B%0A%0A    /* @Column(name = %22id%22, length = 36, nullable = false, unique = true) */%0A    /* @Type(type = %22au.gov.ga.geodesy.support.hibernate.EntityIdUserType%22) */%0A    /* private EntityId%3CGnssCorsSite%3E gnssCorsSiteId; */%0A%0A    /**%0A     * Business id%0A     */%0A    @Column(name = %22four_character_id%22, length = 4, nullable = false, unique = true)%0A    private String fourCharacterId;%0A%0A    /* public EntityId%3CGnssCorsSite%3E gnssCorsSiteId() %7B */%0A    /*     return gnssCorsSiteId; */%0A    /* %7D */%0A%0A    /* public GnssCorsSite(EntityId%3CGnssCorsSite%3E id, String fourCharacterId) %7B */
+@Entity%0A@Table(name = %22gnss_cors_site%22)%0Apublic class GnssCorsSite extends Site %7B%0A%0A    /**%0A     * Business id%0A     */%0A    @Column(name = %22four_character_id%22, length = 4, nullable = false, unique = true)%0A    private String fourCharacterId;%0A%0A    @SuppressWarnings(%22unused%22) // hibernate needs the default constructor%0A    private GnssCorsSite() %7B%0A    %7D%0A
 %0A   

Tidy up.