package com.k_int.npdb.datamodel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Class Address
 */

@Entity
@Table(name = "ADDRESS")
public class Address {

	private Long id;
	private String name;
	private String street;
	private String town;
	private String county;
	private String country;
	private String postcode;
	private String easting;
	private String northing;
	
	
	

	public Address() {
	};

	/**
	 * Get the value of id
	 * 
	 * @return the value of id
	 */
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	/**
	 * Get the value of name
	 * 
	 * @return the value of name
	 */
	@Column(name = "NAME")
	public String getName() {
		return name;
	}

	/**
	 * Get the value of street
	 * 
	 * @return the value of street
	 */
	@Column(name = "STREET")
	public String getStreet() {
		return street;
	}

	/**
	 * Get the value of town
	 * 
	 * @return the value of town
	 */
	@Column(name = "TOWN")
	public String getTown() {
		return town;
	}

	/**
	 * Get the value of county
	 * 
	 * @return the value of county
	 */
	@Column(name = "COUNTY")
	public String getCounty() {
		return county;
	}

	/**
	 * Get the value of country
	 * 
	 * @return the value of country
	 */
	@Column(name = "COUNTRY")
	public String getCountry() {
		return country;
	}

	/**
	 * Get the value of postcode
	 * 
	 * @return the value of postcode
	 */
	@Column(name = "POSTCODE", length = 8)
	public String getPostcode() {
		return postcode;
	}
	
	
	@Column(name = "EASTING")
	public String getEasting() {
		return easting;
	}

	@Column(name = "NORTHING")
	public String getNorthing() {
		return northing;
	}

	public void setEasting(String easting) {
		this.easting = easting;
	}
	
	public void setNorthing(String northing) {
		this.northing = northing;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public void setCounty(String county) {
		this.county = county;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	public void setTown(String town) {
		this.town = town;
	}

}
