VchanConfEntity.java
914 Bytes
package com.viontech.entity;
import com.viontech.common.VionTechJsonbType;
import lombok.Data;
import org.hibernate.annotations.Type;
import org.hibernate.annotations.TypeDef;
import javax.persistence.*;
/**
* @program: event_data_handle
* @description: 视频通道配置实体
* @author: authorName
* @create: 2020-03-23 11:29
**/
@Entity
@Table(name = "tb_vchan_conf")
@TypeDef(name = "json", typeClass = VionTechJsonbType.class)
@Data
public class VchanConfEntity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer vchan_conf_unid;
@Column(name = "name")
private String name;
@Column(name = "url")
private String url;
@Column(name = "is_active")
private Boolean isActive;
@Column(name = "original_json", nullable = true, columnDefinition = "jsonb")
@Type(type = "json")
private Object conf;
}