@TableName tb_blog
| 12 | * @TableName tb_blog |
| 13 | */ |
| 14 | @TableName(value ="tb_blog")//指定表名 |
| 15 | @Data |
| 16 | public class Blog implements Serializable { |
| 17 | @TableId(value = "id", type = IdType.AUTO) |
| 18 | private Long id; |
| 19 | |
| 20 | private Long shopId; |
| 21 | |
| 22 | private Long userId; |
| 23 | |
| 24 | /** |
| 25 | * 该Blog对应用户的icon,需要从User表获取 |
| 26 | * 因此将该属性设为exist=false |
| 27 | */ |
| 28 | @TableField(exist = false) |
| 29 | private String icon; |
| 30 | |
| 31 | /** |
| 32 | * 该Blog对应用户的名,需要从User表获取 |
| 33 | * 因此将该属性设为exist=false |
| 34 | */ |
| 35 | @TableField(exist = false) |
| 36 | private String name; |
| 37 | |
| 38 | /** |
| 39 | * 是否点赞过了 |
| 40 | */ |
| 41 | @TableField(exist = false) |
| 42 | private Boolean isLike; |
| 43 | |
| 44 | private String title; |
| 45 | |
| 46 | private String images; |
| 47 | |
| 48 | private String content; |
| 49 | |
| 50 | private Integer liked; |
| 51 | |
| 52 | private Integer comments; |
| 53 | |
| 54 | private Date createTime; |
| 55 | |
| 56 | private Date updateTime; |
| 57 | |
| 58 | private static final long serialVersionUID = 1L; |
| 59 | } |
nothing calls this directly
no outgoing calls
no test coverage detected