All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.leazxl.cms.model.CmsArticleData Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package com.leazxl.cms.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.beetl.sql.core.annotatoin.AssignID;

import java.io.Serializable;

/**
 * 代码生成
 *
 * @author leazxl
 * @date 2018-02-25
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "cms_article_data")
@ApiModel(value = "文章内容")
public class CmsArticleData implements Serializable {

    /**
     * 编号
     */
    @Id
    @AssignID
    @ApiModelProperty(notes = "编号")
    @Column(name = "id")
    private String id;
    /**
     * 文章内容
     */
    @ApiModelProperty(notes = "文章内容")
    @Column(name = "content")
    private String content;
    /**
     * 文章来源
     */
    @ApiModelProperty(notes = "文章来源")
    @Column(name = "copyfrom")
    private String copyfrom;
    /**
     * 相关文章
     */
    @ApiModelProperty(notes = "相关文章")
    @Column(name = "relation")
    private String relation;
    /**
     * 是否允许评论
     */
    @ApiModelProperty(notes = "是否允许评论")
    @Column(name = "allow_comment")
    private Boolean allowComment;


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy