Commit 574de89e by huangfusuper

【实现序列化接口】使PO类实现序列化接口

parent c83866d3
......@@ -4,6 +4,7 @@ import lombok.*;
import org.hibernate.annotations.DynamicInsert;
import javax.persistence.*;
import java.io.Serializable;
import java.util.concurrent.TimeUnit;
/**
......@@ -20,7 +21,7 @@ import java.util.concurrent.TimeUnit;
@Entity
@Table(name = "job_flow_current")
@org.hibernate.annotations.Table(appliesTo = "job_flow_current",comment="任务流的当前版本的表,现实表")
public class MythJobFlowCurrent {
public class MythJobFlowCurrent implements Serializable {
/**
* 当前版本工作流主键
*/
......
......@@ -2,8 +2,15 @@ package com.byit.model;
import lombok.*;
import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
/**
* @author huangfu
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
......@@ -12,7 +19,7 @@ import javax.persistence.*;
@Entity
@Table(name = "job_flow_dependent")
@org.hibernate.annotations.Table(appliesTo = "job_flow_dependent",comment="任务流的关联表,现实表")
public class MythJobFlowDependent {
public class MythJobFlowDependent implements Serializable {
@Id
@Column(nullable = false,columnDefinition = "int(13) COMMENT '工作流Id'")
......
......@@ -3,6 +3,7 @@ package com.byit.model;
import lombok.*;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
......@@ -19,7 +20,7 @@ import java.util.Date;
@Entity
@Table(name = "job_flow_node_current")
@org.hibernate.annotations.Table(appliesTo = "job_flow_node_current",comment="这是任务流当前版本的节点表")
public class MythJobFlowNodeCurrent {
public class MythJobFlowNodeCurrent implements Serializable {
/**
* 当前版本节点主键
*/
......
......@@ -3,6 +3,7 @@ package com.byit.model;
import lombok.*;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
......@@ -19,7 +20,7 @@ import java.util.Date;
@Entity
@Table(name = "job_flow_node_version")
@org.hibernate.annotations.Table(appliesTo = "job_flow_node_version",comment="节点的版本表")
public class MythJobFlowNodeVersion {
public class MythJobFlowNodeVersion implements Serializable {
/**
* 当前版本节点主键
*/
......
......@@ -3,6 +3,7 @@ package com.byit.model;
import lombok.*;
import javax.persistence.*;
import java.io.Serializable;
/**
* @program: byit-myth-job->MythJobFlowRunRecording
......@@ -18,7 +19,7 @@ import javax.persistence.*;
@Entity
@Table(name = "job_flow_run_recording")
@org.hibernate.annotations.Table(appliesTo = "job_flow_run_recording",comment="任务流的执行记录表")
public class MythJobFlowRunRecording {
public class MythJobFlowRunRecording implements Serializable {
/**
* 当前版本工作流主键
*/
......
......@@ -3,6 +3,7 @@ package com.byit.model;
import lombok.*;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
......@@ -19,7 +20,7 @@ import java.util.Date;
@Entity
@Table(name = "job_flow_version")
@org.hibernate.annotations.Table(appliesTo = "job_flow_version",comment="这个实体是任务流的版本表")
public class MythJobFlowVersion {
public class MythJobFlowVersion implements Serializable {
/**
* 版本工作流主键
*/
......
......@@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
......@@ -20,7 +21,7 @@ import java.util.Date;
@Entity
@Table(name = "job_task")
@org.hibernate.annotations.Table(appliesTo = "job_task",comment="任务表,即将执行的任务全在这个表;工作任务")
public class MythJobTask {
public class MythJobTask implements Serializable {
/**
* 当前版本节点主键
*/
......
......@@ -3,6 +3,7 @@ package com.byit.model;
import lombok.*;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
......@@ -19,7 +20,7 @@ import java.util.Date;
@Entity
@Table(name = "job_task_run_log")
@org.hibernate.annotations.Table(appliesTo = "job_task_run_log",comment="节点执行日志")
public class MythJobTaskRunLog {
public class MythJobTaskRunLog implements Serializable {
/**
* 日志ID
*/
......
......@@ -3,6 +3,7 @@ package com.byit.model;
import lombok.*;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
......@@ -19,7 +20,7 @@ import java.util.Date;
@Entity
@Table(name = "job_task_schedule")
@org.hibernate.annotations.Table(appliesTo = "job_task_schedule",comment="工作任务排期表,存储七秒内即将执行的任务节点,这个表也是对接工作流的")
public class MythJobTaskSchedule {
public class MythJobTaskSchedule implements Serializable {
/**
* 当前版本节点主键
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment