hibernate直接操作oracle中clob数据

在hibernate.xml配置中 添加

true 

 

如:

 

 
       
            org.hibernate.dialect.Oracle9Dialect 
   true
   true
   org.hibernate.transaction.JDBCTransactionFactory
         10
         100
         true          
         org.hibernate.hql.ast.ASTQueryTranslatorFactory
       

       

 

 

在模型映射中对应字段配置成

 

text">
           
 

 

java对应的模型中可以直接用 String svalue,

你可能感兴趣的:(开源软件)