Enquete.java 2.34 KB
Newer Older
Kim Gyeongeun committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
package jp.agentec.sinaburocast.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="m_enquete")
public class Enquete extends AbstractEntity {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "enquete_id")
	public Integer enqueteId;

	@Column(name = "enquete_no")
	public Integer enqueteNo;

	@Column(name = "enquete_name")
	public String enqueteName;

	public String header;

	public String footer;

	@Column(name = "end_message")
	public String endMessage;

	@Column(name = "expired_message")
	public String expiredMessage;

	@Column(name = "exceed_message")
	public String exceedMessage;

	@Column(name = "point_num")
	public Integer pointNum;

	@Column(name = "start_date")
	public String startDate;

	@Column(name = "end_date")
	public String endDate;

	public Integer status;

	@Column(name = "admin_user_id")
	public Integer adminUserId;

	@Column(name = "del_flg")
	public Integer delFlg;

	@Column(name = "disp_flg")
	public Integer dispFlg;

	@Column(name = "enquete_type")
	public Integer enqueteType;
	
	@Column(name = "private_flg")
	public boolean privateFlg;

    /** MAnswerList関連プロパティ */
    @OneToMany(mappedBy = "enquete")
    public List<Answer> answerList;

    /** MAdminUser関連プロパティ */
    @ManyToOne
    @JoinColumn(name = "admin_user_id", referencedColumnName = "admin_user_id")
    public AdminUser adminUser;

    /** MQuestionList関連プロパティ */
    @OneToMany(mappedBy = "enquete")
    public List<Question> questionList;

    /** TAdminNotifyMailList関連プロパティ */
    @OneToMany(mappedBy = "enquete")
    public List<AdminNotifyMail> adminNotifyMailList;

    /** TEnqueteSummaryList関連プロパティ */
    @OneToMany(mappedBy = "enquete")
    public List<EnqueteSummary> enqueteSummaryList;

    /** TMemberNotifyMailList関連プロパティ */
    @OneToMany(mappedBy = "enquete")
    public List<MemberNotifyMail> memberNotifyMailList;

	@OneToMany(mappedBy = "enquete")
	public List<Reply> replyList;

    @ManyToOne
    @JoinColumn(name = "enquete_id", referencedColumnName = "enquete_id")
    public EnqueteSummary enqueteSummary;

}