Helius
2021-08-05 fdb91cc72f7cbe8c095a1ce6442c9259ff01ff06
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.xzx.gc.common.entity;
 
 
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
 
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;
 
@Data
public class BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
 
    private String createdBy;
 
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;
 
    private short delFlag;
 
    private Integer revision;
 
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
}