wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes Hibernate : save data as dataType:clob into Sybase Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate : save data as dataType:clob into Sybase" Watch "Hibernate : save data as dataType:clob into Sybase" New topic
Author

Hibernate : save data as dataType:clob into Sybase

Ivy chen
Greenhorn

Joined: Aug 31, 2010
Posts: 16
Hi:

i have a String variable and its length is larger than 60000.
i want to insert this string variable into a column call "result" (dataType is text,DataBase:Sybase,Table call "Log")

in the Log.hbm.xml,i set the "result's type" is org.springframework.orm.hibernate3.support.ClobStringType

here is the Log.hbm.xml:


here is the Log.class:


here is the Spring's application.xml


hibernate do insert this String variable "result" into the DateBase,but it is not intact,the variable's length is only 2^16(16384).

how can i insert this String variable completely?

thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate : save data as dataType:clob into Sybase
 
Similar Threads
Problem with Lazy loading of hierarchical data with spring
spring+hibernate: insert data into database(one to many)
Horible tiney issue in Hibernate.
ORA-00001: unique constraint exception
onetomany - hibernateTemplate