package com.wisedu.mooc.app.study.bo;

import java.util.Date;

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

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * UserStudy entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "mooc_user_question")
public class UserQuestion implements java.io.Serializable {
	/**
	 * 序列
	 */
	private static final long serialVersionUID = 1L;
	// Fields
	private Long questionId;
	private Long courseId;
	private Long courseOpenId;
	private Long spocSchoolId;
	private Long unitId;
	private Integer itemType;
	private Long itemId;
	private Long userId;
	private Date questionDate;
	private Long position;
	private Integer questionType;
	private Long threadId;

	// Constructors

	/** default constructor */
	public UserQuestion() {
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "QUESTION_ID", unique = true, nullable = false)
	public Long getQuestionId() {
		return questionId;
	}

	public void setQuestionId(Long questionId) {
		this.questionId = questionId;
	}

	@Column(name = "COURSE_ID")
	public Long getCourseId() {
		return courseId;
	}

	public void setCourseId(Long courseId) {
		this.courseId = courseId;
	}

	@Column(name = "COURSE_OPEN_ID")
	public Long getCourseOpenId() {
		return courseOpenId;
	}

	public void setCourseOpenId(Long courseOpenId) {
		this.courseOpenId = courseOpenId;
	}

	@Column(name = "SPOC_SCHOOL_ID")
	public Long getSpocSchoolId() {
		return spocSchoolId;
	}

	public void setSpocSchoolId(Long spocSchoolId) {
		this.spocSchoolId = spocSchoolId;
	}

	@Column(name = "UNIT_ID")
	public Long getUnitId() {
		return unitId;
	}

	public void setUnitId(Long unitId) {
		this.unitId = unitId;
	}

	@Column(name = "ITEM_TYPE")
	public Integer getItemType() {
		return itemType;
	}

	public void setItemType(Integer itemType) {
		this.itemType = itemType;
	}

	@Column(name = "ITEM_ID")
	public Long getItemId() {
		return itemId;
	}

	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	@Column(name = "USER_ID")
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "QUESTION_DATE", length = 19)
	public Date getQuestionDate() {
		return questionDate;
	}

	public void setQuestionDate(Date questionDate) {
		this.questionDate = questionDate;
	}

	@Column(name = "POSITION")
	public Long getPosition() {
		return position;
	}

	public void setPosition(Long position) {
		this.position = position;
	}

	@Column(name = "QUESTION_TYPE")
	public Integer getQuestionType() {
		return questionType;
	}

	public void setQuestionType(Integer questionType) {
		this.questionType = questionType;
	}

	@Column(name = "THREAD_ID")
	public Long getThreadId() {
		return threadId;
	}

	public void setThreadId(Long threadId) {
		this.threadId = threadId;
	}

}