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

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

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

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

    @Column(name = "DOMES_NUMBER")
    private String domesNumber;

    @OneToOne(cascade = CascadeType.ALL, orphanRemoval = true)
    @JoinColumn(name = "MONUMENT_ID")
    private Monument monument;

    @SuppressWarnings("unused") // hibernate needs the default constructor
    private GnssCorsSite() {
    }

    public GnssCorsSite(String fourCharacterId) {
        super();
        setFourCharacterId(fourCharacterId);
    }

    public String getFourCharacterId() {
        return fourCharacterId;
    }

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

    public String getDomesNumber() {
        return domesNumber;
    }

    public void setDomesNumber(String domesNumber) {
        this.domesNumber = domesNumber;
    }

    public Monument getMonument() {
        return monument;
    }

    public void setMonument(Monument monument) {
        this.monument = monument;
    }
}

@@ -683,16 +683,252 @@
 ument;%0A%0A
+    @Column(name = %22GEOLOGIC_CHARACTERISTIC%22)%0A    private String geologicCharacteristic;%0A%0A    @Column(name = %22BEDROCK_TYPE%22)%0A    private String bedrockType;%0A%0A    @Column(name = %22BEDROCK_CONDITION%22)%0A    private String bedrockCondition;%0A%0A
     @Sup
@@ -1674,11 +1674,421 @@
 t;%0A    %7D
+%0A%0A    public String getGeologicCharacteristic() %7B%0A        return geologicCharacteristic;%0A    %7D%0A%0A    public void setGeologicCharacteristic(String geologicCharacteristic) %7B%0A        this.geologicCharacteristic = geologicCharacteristic;%0A    %7D%0A%0A    public String getBedrockType() %7B%0A        return bedrockType;%0A    %7D%0A%0A    public void setBedrockType(String bedrockType) %7B%0A        this.bedrockType = bedrockType;%0A    %7D
 %0A%7D%0A

Add some GNSS site attributes.