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_INOUTPG_RECORD")
public class PGInOutRec implements Serializable {
    private long id;
    private Date inTime;
    private Date outTime;
    private String personType;
    private String userName;
//a.id,a.intime ,a.outtime,b.username,b.persontype
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "ID")
    public long getId() {
        return id;
    }

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

    @Basic
    @Column(name = "INTIME" )
    public Date getInTime() {
        return inTime;
    }

    public void setInTime(Date inTime) {
        this.inTime = inTime;
    }
    @Basic
    @Column(name = "OUTTIME" )
    public Date getOutTime() {
        return outTime;
    }

    public void setOutTime(Date outTime) {
        this.outTime = outTime;
    }
    @Basic
    @Column(name = "PERSONTYPE" )
    public String getPersonType() {
        return personType;
    }

    public void setPersonType(String personType) {
        this.personType = personType;
    }
    @Basic
    @Column(name = "USERNAME" )
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

}
