package com.ps.visualization.vo;

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

/**
 * IpAddress entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ip_address", catalog = "global_scan_all")
public class IpAddress implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer idIp;
	private String countryCode;
	private String country;
	private String regname;
	private String city;
	private String latitude;
	private String longitude;

	// Constructors

	/** default constructor */
	public IpAddress() {
	}

	/** full constructor */
	public IpAddress(Integer idIp, String countryCode, String country,
			String regname, String city, String latitude, String longitude) {
		this.idIp = idIp;
		this.countryCode = countryCode;
		this.country = country;
		this.regname = regname;
		this.city = city;
		this.latitude = latitude;
		this.longitude = longitude;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

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

	@Column(name = "id_ip", nullable = false)
	public Integer getIdIp() {
		return this.idIp;
	}

	public void setIdIp(Integer idIp) {
		this.idIp = idIp;
	}

	@Column(name = "country_code", nullable = false, length = 10)
	public String getCountryCode() {
		return this.countryCode;
	}

	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}

	@Column(name = "country", nullable = false, length = 20)
	public String getCountry() {
		return this.country;
	}

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

	@Column(name = "regname", nullable = false, length = 30)
	public String getRegname() {
		return this.regname;
	}

	public void setRegname(String regname) {
		this.regname = regname;
	}

	@Column(name = "city", nullable = false, length = 30)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "latitude", nullable = false, length = 20)
	public String getLatitude() {
		return this.latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	@Column(name = "longitude", nullable = false, length = 20)
	public String getLongitude() {
		return this.longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

}