MemberNotifyMail.java.svn-base 1.19 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
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="t_member_notify_mail")
public class MemberNotifyMail extends AbstractEntity {

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

	@Id
	@Column(name = "member_notify_mail_id")
	public Integer memberNotifyMailId;

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

	@Column(name = "notify_mail_send_flg")
	public Integer notifyMailSendFlg;

	@Column(name = "notify_mail_send_to")
	public String notifyMailSendTo;

	@Column(name = "notify_mail_send_bcc")
	public String notifyMailSendBcc;

	public String subject;

	@Column(name = "mail_body")
	public String mailBody;

    /** MEnquete関連プロパティ */
    @ManyToOne
    @JoinColumn(name = "enquete_id", referencedColumnName = "enquete_id")
    public Enquete enquete;

	/** NotifyMailSendResult関連プロパティ */
	@OneToMany(mappedBy = "MemberNotifyMail")
	public List<NotifyMailSendResult> notifyMailSendResult;
}