提交 | 用户 | 时间
|
a6de49
|
1 |
/** |
H |
2 |
* Copyright (c) 2018 人人开源 All rights reserved. |
|
3 |
* |
|
4 |
* https://www.renren.io |
|
5 |
* |
|
6 |
* 版权所有,侵权必究! |
|
7 |
*/ |
|
8 |
|
|
9 |
package com.iailab.framework.common.entity; |
|
10 |
|
|
11 |
import com.baomidou.mybatisplus.annotation.FieldFill; |
|
12 |
import com.baomidou.mybatisplus.annotation.TableField; |
|
13 |
import com.baomidou.mybatisplus.annotation.TableId; |
|
14 |
import lombok.Data; |
|
15 |
|
|
16 |
import java.io.Serializable; |
|
17 |
import java.util.Date; |
|
18 |
|
|
19 |
/** |
|
20 |
* 基础实体类,所有实体都需要继承 |
|
21 |
* |
|
22 |
* @author Mark sunlightcs@gmail.com |
|
23 |
*/ |
|
24 |
@Data |
|
25 |
public abstract class BaseEntity implements Serializable { |
|
26 |
/** |
|
27 |
* id |
|
28 |
*/ |
|
29 |
@TableId |
|
30 |
private Long id; |
|
31 |
/** |
|
32 |
* 创建者 |
|
33 |
*/ |
|
34 |
@TableField(fill = FieldFill.INSERT) |
|
35 |
private Long creator; |
|
36 |
/** |
|
37 |
* 创建时间 |
|
38 |
*/ |
|
39 |
@TableField(fill = FieldFill.INSERT) |
|
40 |
private Date createDate; |
|
41 |
} |