/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package open.dolphin.infomodel;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.Type;
/**
* サマリー対応
* @author S.Oh@Life Sciences Computing Corporation.
*/
@Entity
@Table(name = "d_patient_freedocument")
public class PatientFreeDocumentModel extends InfoModel implements java.io.Serializable {
@Id @GeneratedValue(strategy=GenerationType.AUTO)
private long id;
@Column(nullable=false)
private String facilityPatId;
@Column(nullable=false)
@Temporal(value = TemporalType.TIMESTAMP)
private Date confirmed;
@Lob
@Type(type="org.hibernate.type.StringClobType")
private String comment;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getFacilityPatId() {
return facilityPatId;
}
public void setFacilityPatId(String facilityPatId) {
this.facilityPatId = facilityPatId;
}
public Date getConfirmed() {
return confirmed;
}
public void setConfirmed(Date confirmed) {
this.confirmed = confirmed;
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
}