package cn.wise.sc.energy.power.plant.business.domain;

import com.alibaba.fastjson.JSONObject;
import com.vladmihalcea.hibernate.type.json.JsonStringType;
import lombok.Data;
import org.hibernate.annotations.Type;
import org.hibernate.annotations.TypeDef;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @description:
 * @author: neo.shu
 * @create: 2020-09-14 10:00
 **/
@Data
@Entity
@Table(name = "btreeinfo",schema = "btreeinfo")
@TypeDef(name = "json", typeClass = JsonStringType.class)
public class BtreeInfoConfig extends AbstractEntity<Long> implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;


    private String btreetype;


    private String btreename;


    private String btreefunname;


    private Float version;

    @Type(type = "json")
    private JSONObject info;


}
