1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- 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;
- /**
- * <p>
- *
- * </p>
- *
- * @author Reiskuchen
- * @since 2019-10-23
- */
- @Data
- @EqualsAndHashCode(callSuper = false)
- @Accessors(chain = true)
- @TableName("article")
- public class Article extends Model<Article> {
- 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;
- }
- }
|