package com.ps.visualization.vo;

import java.sql.Timestamp;
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;

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

	// Fields

	private Integer id;
	private String ip;
	private Timestamp updateT;

	// Constructors

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

	/** full constructor */
	public Ipsinfo(String ip, Timestamp updateT) {
		this.ip = ip;
		this.updateT = updateT;
	}

	// 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 = "ip", nullable = false, length = 16)
	public String getIp() {
		return this.ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	@Column(name = "update_t", nullable = false, length = 19)
	public Timestamp getUpdateT() {
		return this.updateT;
	}

	public void setUpdateT(Timestamp updateT) {
		this.updateT = updateT;
	}

}