package com.yc.education.model;

import javax.persistence.*;
import java.util.List;

/**
 * 新闻中心 类别实体类
 * @author Hickey
 * @create 2019-07-23 11:11
 */
@Table(name ="newstype")
public class NewsType {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)

    private  Integer id;//类别主键id

    private  String typename;//类别名称

    private  Integer typeweight;//类别权重


    @Transient
    private List<NewsCenter> newsCenterList;


    /**
     * 类别id
     * @return id
     */
    public Integer getId() {
        return id;
    }

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

    /**
     * 类别名称
     * @return typename
     */
    public String getTypename() {
        return typename;
    }

    public void setTypename(String typename) {
        this.typename = typename;
    }

    /**
     * 类别权重
     * @return typeweight
     */
    public Integer getTypeweight() {
        return typeweight;
    }

    public void setTypeweight(Integer typeweight) {
        this.typeweight = typeweight;
    }

    public List<NewsCenter> getNewsCenterList() {
        return newsCenterList;
    }

    public void setNewsCenterList(List<NewsCenter> newsCenterList) {
        this.newsCenterList = newsCenterList;
    }
}
