package com.casic.PgInterface.devTable.domain;

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

/**
 * Created by yxw on 2018/1/8.
 */
@Entity
@Table(name = "PG_DEVICE_TYPE")
@SequenceGenerator(name = "SEQ_PG_DEVICE_TYPE_ID", sequenceName = "SEQ_PG_DEVICE_TYPE_ID", allocationSize = 1, initialValue = 1)
public class PgDeviceType implements Serializable {

    private static final long serialVersionUID = 1L;
    private long id;
    private String devType;
    private int active;

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_PG_DEVICE_TYPE_ID")
    public long getId() {
        return id;
    }

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

    @Column(name = "DEV_TYPE")
    public String getDevType() {
        return devType;
    }

    public void setDevType(String devType) {
        this.devType = devType;
    }

    @Column(name = "ACTIVE")
    public int getActive() {
        return active;
    }

    public void setActive(int active) {
        this.active = active;
    }
}
