package com.yc.education.model;

import javax.persistence.*;

public class Product {
    /**
     * id
     */
    @Id
   /* @GeneratedValue(strategy = GenerationType.IDENTITY)*/
    private Integer id;

    /**
     * 关联分类id
     */
    private Integer oneid;
    private Integer cfpid;

    private String title;

    private Integer recommend;

    private Integer sort;

    /**
     * 详情
     */
    private String details;

    private String releasetime;

    /**
     * 获取id
     *
     * @return id - id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置id
     *
     * @param id id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOneid() {
        return oneid;
    }

    public void setOneid(Integer oneid) {
        this.oneid = oneid;
    }

    /**
     * 获取关联分类id
     *
     * @return cfpid - 关联分类id
     */
    public Integer getCfpid() {
        return cfpid;
    }

    /**
     * 设置关联分类id
     *
     * @param cfpid 关联分类id
     */
    public void setCfpid(Integer cfpid) {
        this.cfpid = cfpid;
    }

    /**
     * 获取详情
     *
     * @return details - 详情
     */
    public String getDetails() {
        return details;
    }

    /**
     * 设置详情
     *
     * @param details 详情
     */
    public void setDetails(String details) {
        this.details = details;
    }

    public String getTitle() {
        return title;
    }

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

    public Integer getRecommend() {
        return recommend;
    }

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

    public Integer getSort() {
        return sort;
    }

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

    public String getReleasetime() {
        return releasetime;
    }

    public void setReleasetime(String releasetime) {
        this.releasetime = releasetime;
    }
}