package com.hssx.ysofficial.entity; import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.extension.activerecord.Model; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableField; import java.io.Serializable; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; /** *

* *

* * @author Reiskuchen * @since 2019-10-23 */ @Data @EqualsAndHashCode(callSuper = false) @Accessors(chain = true) @TableName("article") public class Article extends Model
{ private static final long serialVersionUID=1L; /** * id */ @TableId(value = "id", type = IdType.AUTO) private Integer id; /** * the title of articles */ @TableField("title") private String title; /** * the content of article */ @TableField("content") private String content; /** * the type of article */ @TableField("type") private String type; /** * whether the article is sticked or not */ @TableField("sticky") private Integer sticky; /** * the position of article in the list */ @TableField("position") private Integer position; @Override protected Serializable pkVal() { return this.id; } }