package com.yc.education.model;

import javax.persistence.*;

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

    /**
     * 关联主键
     */
    private Integer fpid;

    /**
     * 标题
     */
    private String title;

    /**
     * 封面图
     */
    private String surfaceplot;

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

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

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

    /**
     * 获取关联主键
     *
     * @return fpid - 关联主键
     */
    public Integer getFpid() {
        return fpid;
    }

    /**
     * 设置关联主键
     *
     * @param fpid 关联主键
     */
    public void setFpid(Integer fpid) {
        this.fpid = fpid;
    }

    /**
     * 获取标题
     *
     * @return title - 标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置标题
     *
     * @param title 标题
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取封面图
     *
     * @return surfaceplot - 封面图
     */
    public String getSurfaceplot() {
        return surfaceplot;
    }

    /**
     * 设置封面图
     *
     * @param surfaceplot 封面图
     */
    public void setSurfaceplot(String surfaceplot) {
        this.surfaceplot = surfaceplot;
    }

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

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