This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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!
 
Consider Paul's rocket mass heater.
 
subject: Hibernate : save data as dataType:clob into Sybase
 
Similar Threads
spring+hibernate: insert data into database(one to many)
ORA-00001: unique constraint exception
Horible tiney issue in Hibernate.
Problem with Lazy loading of hierarchical data with spring
onetomany - hibernateTemplate