oracle clob jpa,JPA Clob

这是一个关于Java持久化框架使用的抽象类AbstractTHistory的详细解析。该类包含了一个Integer类型的唯一标识id,一个与TReport类关联的对象,一个字符串sj和一个日期scsj。文章讨论了类的构造函数以及属性的getter和setter方法,对于理解Java实体类和数据库交互有一定帮助。
摘要由CSDN通过智能技术生成

// 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 孤飞燕 阅读(847) 评论(0)  编辑  收藏

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值