MessageRecipient.java
/**
* TFG 75.678 - TFG Desarrollo web 2020 e-Learning for Schools
* Copyright (C) 2020 Eduardo Rodriguez Carro
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.uoc.tfg.sel.repository.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
/**
* The Class MessageRecipient.
*
* @author Eduardo Rodriguez Carro
*/
@JsonInclude(value = Include.NON_NULL)
@Entity
@Table(name = "messagerecipient")
public class MessageRecipient implements Serializable {
/** The Constant serialVersionUID. */
private static final long serialVersionUID = 967806570964040248L;
/** The id. */
@EmbeddedId
private MessageRecipentId id;
/** The read date. */
@Column(name ="readdate",nullable = true)
private Date readDate;
/**
* Gets the id.
*
* @return the id
*/
public MessageRecipentId getId() {
return id;
}
/**
* Sets the id.
*
* @param id the new id
*/
public void setId(MessageRecipentId id) {
this.id = id;
}
/**
* Gets the read date.
*
* @return the read date
*/
public Date getReadDate() {
return readDate;
}
/**
* Sets the read date.
*
* @param readDate the new read date
*/
public void setReadDate(Date readDate) {
this.readDate = readDate;
}
}