content: package org.catframework.agileworking.domain;
  
  import java.io.Serializable;
  import java.util.Date;
  
  import javax.persistence.Entity;
  import javax.persistence.GeneratedValue;
  import javax.persistence.Id;
  import javax.persistence.JoinColumn;
  import javax.persistence.ManyToOne;
  
  import com.fasterxml.jackson.annotation.JsonFormat;
  import com.fasterxml.jackson.annotation.JsonIgnore;
  
  @Entity
  public class Participant implements Serializable {
  
  	private static final long serialVersionUID = 1L;
  
  	@Id
  	@GeneratedValue
  	private Long id;
  
  	/** 排期 id. */
  	@JsonIgnore
  	@ManyToOne
  	@JoinColumn(name = "schedule_id")
  	private Schedule schedule;
  
  	/** 参会人微信 openId. */
  	private String openId;
  
  	/** 参会人微信昵名. */
  	private String nickName;
  
  	/** 参会人微信头像的链接. */
  	private String avatarUrl;
  
  	/** 参会日期. */
  	private Date date;
  
  	/** 参加会议表格提交的 formId 用于模板消息通知. */
  	private String formId;
  
  	public Long getId() {
  		return id;
  	}
  
  	public void setId(Long id) {
  		this.id = id;
  	}
  
  	public Schedule getSchedule() {
  		return schedule;
  	}
  
  	public void setSchedule(Schedule schedule) {
  		this.schedule = schedule;
  	}
  
  	public String getNickName() {
  		return nickName;
  	}
  
  	public void setNickName(String nickName) {
  		this.nickName = nickName;
  	}
  
  	public String getAvatarUrl() {
  		return avatarUrl;
  	}
  
  	public void setAvatarUrl(String avatarUrl) {
  		this.avatarUrl = avatarUrl;
  	}
  
  	public String getOpenId() {
  		return openId;
  	}
  
  	public void setOpenId(String openId) {
  		this.openId = openId;
  	}
  
  	@JsonFormat(pattern = "yyyy-MM-dd")
  	public Date getDate() {
  		return date;
  	}
  
  	@JsonFormat(pattern = "yyyy-MM-dd")
  	public void setDate(Date date) {
  		this.date = date;
  	}
  
  	public String getFormId() {
  		return formId;
  	}
  
  	public void setFormId(String formId) {
  		this.formId = formId;
  	}
  }
  