package com.njdt_oa.common.domain;
import java.util.Date;
public class GXOA_NJDT_WLFYNR implements java.io.Serializable{
public GXOA_NJDT_WLFYNR(){}
private String rowId;
private String ftnr_blob;
private String htnr_blob;
public String getRowId() {
return rowId;
}
public void setRowId(String rowId) {
this.rowId = rowId;
}
public String getTableId() {
return tableId;
}
public void setFtnr_blob(String ftnr_blob) {
this.ftnr_blob = ftnr_blob;
}
public String getHtnr_blob() {
return htnr_blob;
}
public void setHtnr_blob(String htnr_blob) {
this.htnr_blob = htnr_blob;
}
}
applicationContext.xml文件
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<!-- oracle 9i处理方法
<bean id="nativeJdbcExtractor" class="org.springframework.jdbc.support.nativejdbc.SimpleNativeJdbcExtractor" lazy-init="true" />
<bean id="lobHandler" class="org.springframework.jdbc.support.lob.OracleLobHandler" lazy-init="true">
设置本地jdbc对象抽取器
<property name="nativeJdbcExtractor" ref="nativeJdbcExtractor" />
</bean>
-->
<!-- oracle 10g -->
<bean id="lobHandler" lazy-init="true" class="org.springframework.jdbc.support.lob.DefaultLobHandler" />
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>java:comp/env/jdbc/TestDB</value>
</property>
</bean>
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<!-- oracle 10g对大数据处理的实现类注入到SessionFactory中 -->
<property name="lobHandler" ref="lobHandler"/>
<property name="dataSource">
<ref bean="dataSource" />
</property>
</bean>
其他配置.....
</beans>