|
@@ -5,17 +5,22 @@ import lombok.Data;
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
import javax.persistence.*;
|
|
|
+import java.io.Serializable;
|
|
|
|
|
|
@Data
|
|
|
@AllArgsConstructor
|
|
|
@NoArgsConstructor
|
|
|
@Entity
|
|
|
@Table(name = "long_articles_video_audit")
|
|
|
+@IdClass(LongArticleVideoAudit.PK.class)
|
|
|
public class LongArticleVideoAudit {
|
|
|
|
|
|
@Id
|
|
|
@Column(name = "video_id")
|
|
|
private Long videoId;
|
|
|
+ @Id
|
|
|
+ @Column(name = "type")
|
|
|
+ private Integer type;
|
|
|
|
|
|
@Column(name = "content_id")
|
|
|
private String contentId;
|
|
@@ -23,9 +28,6 @@ public class LongArticleVideoAudit {
|
|
|
@Column(name = "trace_id")
|
|
|
private String traceId;
|
|
|
|
|
|
- @Column(name = "type")
|
|
|
- private Integer type;
|
|
|
-
|
|
|
@Column(name = "oss_path")
|
|
|
private String ossPath;
|
|
|
|
|
@@ -43,4 +45,17 @@ public class LongArticleVideoAudit {
|
|
|
|
|
|
@Column(name = "finish_timestamp")
|
|
|
private Long finishTimestamp;
|
|
|
+
|
|
|
+ @Data
|
|
|
+ public static class PK implements Serializable {
|
|
|
+
|
|
|
+ @Column(name = "video_id")
|
|
|
+ private Long videoId;
|
|
|
+ @Column(name = "type")
|
|
|
+ private Integer type;
|
|
|
+
|
|
|
+ public PK() {
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
}
|