Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to cast String to Clob ?

 
sylvester sinc
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,

anybody know how to cast a String datatype into Clob ?

I wanna get the data from a textarea and incert into a Clob data type

before that Im using 'String contents = ConvertUtils.convert(rules.getContent());' to cast the Clob into String but now I have no idea on how to convert this String to Clob.
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"syl sc " please check your private messages for an important administrative matter.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which ORM are you using?
 
sylvester sinc
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"syl sinc",

Everyone here, at JavaRanch, is more than willing to help you by answering your question(s). But we expect the ranchers to follow a couple of very simple rules, one of which is the naming policy. Your displayed name must consist of a first name (or an initial), a space, and a family name (in that order) and not be obviously fictitious. Please take a moment to change it, which you can do right here.


Thank you
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I haven't done this myself, but maybe this Hibernate documentation might help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic