Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate : save data as dataType:clob into Sybase

 
Ivy chen
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic