package com.casic.PgInterface.overtimeInPG.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

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

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

@Entity
@Table(name = "PG_TAGMAC")
@SequenceGenerator(name ="SEQ_PG_TAGMAC_ID",sequenceName = "SEQ_PG_TAGMAC_ID",allocationSize = 1,initialValue = 1)
public class PGTagMac implements Serializable {
    private long id;
    private String hostId;
    private String hostName;
    private String tagMac;
    private String tagName;

    @Id
//    @GeneratedValue(strategy = GenerationType.AUTO)
    @GeneratedValue(strategy = GenerationType.SEQUENCE,generator ="SEQ_PG_TAGMAC_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 = "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;
    }

}
