srt_cloud/srt-cloud-data-governance/src/main/java/net/srt/entity/MetadataCollectEntity.java

77 lines
1.5 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package net.srt.entity;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import net.srt.framework.mybatis.entity.BaseEntity;
import java.util.Date;
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("data_governance_metadata_collect")
public class MetadataCollectEntity extends BaseEntity {
/**
* 任务名称
*/
private String name;
/**
* 数据库类型1-数据库 2-中台库)
*/
private Integer dbType;
/**
* 数据库主键id
*/
private Long databaseId;
/**
* 入库策略0-全量1-增量
*/
private Integer strategy;
/**
* 任务类型 1一次性 2.周期性
*/
private Integer taskType;
/**
* cron表达式秒 分 时 日 月 星期 年,例如 0 0 3 * * ? 表示每天凌晨三点执行)
*/
@TableField(updateStrategy = FieldStrategy.IGNORED)
private String cron;
/**
* 归属元数据的目录
*/
private Long metadataId;
/**
* 描述
*/
private String description;
/**
* 是否已发布 0-否 1-是
*/
private Integer status;
/**
* 发布时间
*/
@TableField(updateStrategy = FieldStrategy.IGNORED)
private Date releaseTime;
/**
* 项目id
*/
private Long projectId;
}