package com.yc.education.model;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * huangpan
 * 2019/9/24
 * energy
 */
/*新闻表*/
public class Journalism {


    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private int id;
    private String title;
    private String describes;
    @Column(name="releaseTime")
    private String releaseTime;
    private int types;
    private String details;
    private int recommend;
    private int sort;
    private String picture;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescribes() {
        return describes;
    }

    public void setDescribes(String describes) {
        this.describes = describes;
    }

    public String getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(String releaseTime) {
        this.releaseTime = releaseTime;
    }

    public int getTypes() {
        return types;
    }

    public void setTypes(int types) {
        this.types = types;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public int getRecommend() {
        return recommend;
    }

    public void setRecommend(int recommend) {
        this.recommend = recommend;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public Journalism(String title, String describes, String releaseTime, int types, String details, int recommend, int sort, String picture) {
        this.title = title;
        this.describes = describes;
        this.releaseTime = releaseTime;
        this.types = types;
        this.details = details;
        this.recommend = recommend;
        this.sort = sort;
        this.picture = picture;
    }

    public Journalism(){}
}
