// default package
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
* AbstractTHistory generated by MyEclipse Persistence Tools
*/
@MappedSuperclass
public abstract class AbstractTHistory implements java.io.Serializable {
// Fields
private Integer id;
private TReport TReport;
private String sj;
private Date scsj;
// Constructors
/** default constructor */
public AbstractTHistory() {
}
/** minimal constructor */
public AbstractTHistory(Integer id) {
this.id = id;
}
/** full constructor */
public AbstractTHistory(Integer id, TReport TReport, String sj, Date scsj) {
this.id = id;
this.TReport = TReport;
this.sj = sj;
this.scsj = scsj;
}
// Property accessors
@Id
@GeneratedValue
@Column(name = "ID", unique = true, nullable = false, insertable = true, updatable = true)
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
@ManyToOne(cascade = {}, fetch = FetchType.LAZY)
@JoinColumn(name = "FID", unique = false, nullable = true, insertable = true, updatable = true)
public TReport getTReport() {
return this.TReport;
}
public void setTReport(TReport TReport) {
this.TReport = TReport;
}
@Lob
@Basic(fetch=FetchType.LAZY)
@Column(name = "SJ", unique = false, nullable = true, insertable = true, updatable = true)
public String getSj() {
return this.sj;
}
public void setSj(String sj) {
this.sj = sj;
}
@Temporal(TemporalType.TIMESTAMP)
@Column(name = "SCSJ", unique = false, nullable = true, insertable = true, updatable = true, length = 26)
public Date getScsj() {
return this.scsj;
}
public void setScsj(Date scsj) {
this.scsj = scsj;
}
}
posted on 2009-06-14 16:00
孤飞燕 阅读(962)
评论(0) 编辑 收藏