EnqueteMail.java.svn-base 1.89 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
package jp.agentec.sinaburocast.entity;

import java.sql.Timestamp;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

@Entity
@Table(name="t_enquete_mail")
public class EnqueteMail extends AbstractEntity {

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

	@Id
	@Column(name = "enquete_mail_id")
	public Integer enqueteMailId;

	public String subject;

	@Column(name = "delivery_group_id")
	public Integer deliveryGroupId;

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

	public Integer status;

	@Column(name = "delivery_target_type")
	public String deliveryTargetType;

	@Column(name = "delivery_target_method")
	public String deliveryTargetMethod;

	@Temporal(TemporalType.DATE)
	@Column(name = "delivery_date")
	public Timestamp deliveryDate;

	@Column(name = "delivery_total_num")
	public Integer deliveryTotalNum;

	@Column(name = "delivery_success_num")
	public Integer deliverySuccessNum;

	@Column(name = "delivery_fail_num")
	public Integer deliveryFailNum;

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

    /** MDeliveryGroup関連プロパティ */
    @ManyToOne
    @JoinColumn(name = "delivery_group_id", referencedColumnName = "delivery_group_id")
    public DeliveryGroup deliveryGroup;

    /** EnqueteMailSendResultList関連プロパティ */
    @OneToMany(mappedBy = "EnqueteMail")
    public List<EnqueteMailSendResult> enqueteMailSendResultList;

    /** EnqueteMailSendResultList関連プロパティ */
    @OneToMany(mappedBy = "EnqueteMail")
    public List<EnqueteMailAddressTmp> enqueteMailAddressTmpList;
}