package com.casic.PgInterface.overtimeInPG.domain;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

//import org.hibernate.type.MaterializedClobType;
//import javax.annotation.Generated;
//import java.sql.Clob;

@Entity
@Table(name = "PG_TAGPOSITION")
@SequenceGenerator(name ="SEQ_PG_TAGPOSITION_ID",sequenceName = "SEQ_PG_TAGPOSITION_ID",allocationSize = 1,initialValue = 1)
public class PGTagPosition implements Serializable {
    private long id;
    private String hostId;
    private String hostName;
    private String tagId;
    private String tagName;
    private String tagMac;
    private String coordinatesName;
    private String coordinate;
    private String x;
    private String y;
    private String positionUpdatetime;
    private Date parsedTime;
    //    private Date queryTime;
//    private String partition;
//    private String binName;
    @Id
//    @GeneratedValue(strategy = GenerationType.AUTO)
    @GeneratedValue(strategy = GenerationType.SEQUENCE,generator ="SEQ_PG_TAGPOSITION_ID")
    @Column(name = "ID")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }
    @Basic
    @Column(name = "HOSTID" )
    public String getHostId() {
        return hostId;
    }

    public void setHostId(String hostId) {
        this.hostId = hostId;
    }
    @Basic
    @Column(name = "HOSTNAME")
    public String getHostName() {
        return hostName;
    }

    public void setHostName(String hostName) {
        this.hostName = hostName;
    }
    @Basic
    @Column(name = "TAGID")
    public String getTagId() {
        return tagId;
    }

    public void setTagId(String tagId) {
        this.tagId = tagId;
    }
    @Basic
    @Column(name = "TAGMAC")
    public String getTagMac() {
        return tagMac;
    }
    public void setTagMac(String tagMac) {
        this.tagMac = tagMac;
    }
    @Basic
    @Column(name = "TAGMACNAME")
    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }
    @Basic
    @Column(name = "COORDINATESNAME")
    public String getCoordinatesName()
    {
        return coordinatesName;
    }
    public void setCoordinatesName(String coordinatesName)
    {
        this.coordinatesName = coordinatesName;
    }

    @Basic
    @Column(name = "COORDINATE")
    public String getCoordinate()
    {
        return coordinate;
    }
    public void setCoordinate(String coordinate)
    {
        this.coordinate = coordinate;
    }

    @Basic
    @Column(name = "X")
    public String getX()
    {
        return x;
    }
    public void setX(String x)
    {
        this.x = x;
    }
    @Basic
    @Column(name = "Y")
    public String getY()
    {
        return y;
    }
    public void setY(String y)
    {
        this.y = y;
    }

    @Basic
    @Column(name = "POSITIONUPDATETIME")
    public String getPositionUpdatetime()
    {
        return positionUpdatetime;
    }
    public void setPositionUpdatetime(String positionUpdatetime)
    {
        this.positionUpdatetime = positionUpdatetime;
    }

    @Basic
    @Column(name = "PARSEDTIME")
    public Date getParsedTime()
    {
        return parsedTime;
    }
    public void setParsedTime(Date parsedTime)
    {
        this.parsedTime = parsedTime;
    }

//    @Basic
//    @Column(name = "QUERYTIME")
//    public Date getQueryTime()
//    {
//        return queryTime;
//    }
//    public void setQueryTime(Date queryTime)
//    {
//        this.queryTime = queryTime;
//    }
//    @Basic
//    @Column(name = "PARTITION")
//    public String getPartition(){return partition;}
//    public void setPartition(String partition) {this.partition = partition;}
//
//    @Basic
//    @Column(name = "BINNAME")
//    public String getBinName(){return binName;}
//    public void setBinName(String binName){ this.binName = binName; }
}
