package com.ssj.bean.weixin.problem.domain;

import com.ssj.bean.common.framework.core.domain.BaseEntity;

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

@Entity
@Table(name = "ydz_artice_matter")
public class ArticeMatter extends BaseEntity{
	
	private static final long serialVersionUID = 1L;
	private String articeId;//文章id
	private String matter;//问题
	private Integer type;//1.单选2.多选
	private Integer stat;//类型
	private Integer count;//排序
	private Date createTime;//创建时间
	
	
	private List<ArticeMatterSolution> solutionList = new ArrayList<ArticeMatterSolution>();
	
	public String getArticeId() {
		return articeId;
	}
	public void setArticeId(String articeId) {
		this.articeId = articeId;
	}
	public String getMatter() {
		return matter;
	}
	public void setMatter(String matter) {
		this.matter = matter;
	}
	
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public Integer getStat() {
		return stat;
	}
	public void setStat(Integer stat) {
		this.stat = stat;
	}
	
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	@Column(updatable =false)
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@OneToMany(cascade = { CascadeType.REFRESH}, fetch=FetchType.EAGER)
	@JoinColumn(name="matterId",updatable =false,insertable =false)
	@OrderBy(" sequence asc")
	public List<ArticeMatterSolution> getSolutionList() {
		return solutionList;
	}
	public void setSolutionList(List<ArticeMatterSolution> solutionList) {
		this.solutionList = solutionList;
	}
	
	

}
