孤燈野火
          暢想的天空
          posts - 2,comments - 4,trackbacks - 0

          // 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 孤飛燕 閱讀(967) 評(píng)論(0)  編輯  收藏

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 育儿| 景洪市| 洛隆县| 平遥县| 会宁县| 滕州市| 建始县| 莫力| 通辽市| 仁怀市| 南充市| 泰和县| 博湖县| 淄博市| 交口县| 康平县| 布尔津县| 开化县| 马龙县| 奉节县| 新宁县| 全州县| 丰原市| 布拖县| 秀山| 巴林左旗| 锡林郭勒盟| 宜良县| 克东县| 屏边| 青川县| 赣榆县| 溆浦县| 梁平县| 临夏市| 茶陵县| 长海县| 松滋市| 常德市| 嘉峪关市| 墨玉县|