package com.example.demo.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "app_countries")
public class Country {

	@Id
	@Column(name = "geoname_id")
	private int geoname_id;

	@Column(name = "locale_code", columnDefinition = "CHAR(2)")
	private String locale_code;

	@Column(name = "continent_code", columnDefinition = "CHAR(2)")
	private String continent_code;

	@Column(name = "continent_name", columnDefinition = "VARCHAR(50)")
	private String continent_name;

	@Column(name = "country_iso_code", columnDefinition = "CHAR(2)")
	private String country_iso_code;

	@Column(name = "country_name", columnDefinition = "VARCHAR(100)")
	private String country_name;

	@Column(name = "is_in_european_union", columnDefinition = "TINYINT(1)")
	private int is_in_european_union;

	public int getGeoname_id() {
		return geoname_id;
	}

	public void setGeoname_id(int geoname_id) {
		this.geoname_id = geoname_id;
	}

	public String getLocale_code() {
		return locale_code;
	}

	public void setLocale_code(String locale_code) {
		this.locale_code = locale_code;
	}

	public String getContinent_code() {
		return continent_code;
	}

	public void setContinent_code(String continent_code) {
		this.continent_code = continent_code;
	}

	public String getContinent_name() {
		return continent_name;
	}

	public void setContinent_name(String continent_name) {
		this.continent_name = continent_name;
	}

	public String getCountry_iso_code() {
		return country_iso_code;
	}

	public void setCountry_iso_code(String country_iso_code) {
		this.country_iso_code = country_iso_code;
	}

	public String getCountry_name() {
		return country_name;
	}

	public void setCountry_name(String country_name) {
		this.country_name = country_name;
	}

	public int getIs_in_european_union() {
		return is_in_european_union;
	}

	public void setIs_in_european_union(int is_in_european_union) {
		this.is_in_european_union = is_in_european_union;
	}

}
