package com.gurkensalat.osm.entity;

import org.springframework.data.jpa.domain.AbstractPersistable;

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

@Entity
@Table(name = "QA_PLACES")
public class LinkedPlace extends AbstractPersistable<Long>
{
    @Column(name = "VERSION")
    private Integer version;

    private transient double lat;

    private transient double lon;

    @Column(name = "osm_id", length = 80)
    private String osmId;

    private transient OsmPlace osmPlace;

    @Column(name = "D_CODE", length = 80)
    private String ditibCode;

    private transient DitibPlace ditibPlace;

    @Column(name = "cagedata_key", length = 80)
    private String geocodedPlaceKey;

    @Column(name = "SCORE")
    private double score;

    @Column(name = "BD_GEOCODED")
    private int badnessIsGeocoded;

    public Integer getVersion()
    {
        return version;
    }

    public void setVersion(Integer version)
    {
        this.version = version;
    }

    public double getLat()
    {
        return lat;
    }

    public void setLat(double lat)
    {
        this.lat = lat;
    }

    public double getLon()
    {
        return lon;
    }

    public void setLon(double lon)
    {
        this.lon = lon;
    }

    public String getOsmId()
    {
        return osmId;
    }

    public void setOsmId(String osmId)
    {
        this.osmId = osmId;
    }

    public OsmPlace getOsmPlace()
    {
        return osmPlace;
    }

    public void setOsmPlace(OsmPlace osmPlace)
    {
        this.osmPlace = osmPlace;
    }

    public String getDitibCode()
    {
        return ditibCode;
    }

    public void setDitibCode(String ditibCode)
    {
        this.ditibCode = ditibCode;
    }

    public DitibPlace getDitibPlace()
    {
        return ditibPlace;
    }

    public void setDitibPlace(DitibPlace ditibPlace)
    {
        this.ditibPlace = ditibPlace;
    }

    public String getGeocodedPlaceKey()
    {
        return geocodedPlaceKey;
    }

    public void setGeocodedPlaceKey(String geocodedPlaceKey)
    {
        this.geocodedPlaceKey = geocodedPlaceKey;
    }

    public double getScore()
    {
        return score;
    }

    public void setScore(double score)
    {
        this.score = score;
    }

    public int getBadnessIsGeocoded()
    {
        return badnessIsGeocoded;
    }

    public void setBadnessIsGeocoded(int badnessIsGeocoded)
    {
        this.badnessIsGeocoded = badnessIsGeocoded;
    }
}

@@ -444,14 +444,14 @@
  = %22
-osm_id
+OSM_ID
 %22, l
@@ -450,33 +450,33 @@
 M_ID%22, length = 
-8
+2
 0)%0A    private S
@@ -552,16 +552,20 @@
 ame = %22D
+ITIB
 _CODE%22, 
@@ -565,33 +565,33 @@
 CODE%22, length = 
-8
+2
 0)%0A    private S
@@ -678,20 +678,20 @@
  = %22
-cagedata_key
+CAGEDATA_KEY
 %22, l
@@ -702,9 +702,9 @@
 h = 
-8
+2
 0)%0A 

Clean up schema a bit