-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Clob & DB2
PostPosted: Thu Jan 11, 2007 11:44 am 
Beginner
Beginner

Joined: Thu Oct 23, 2003 11:22 am
Posts: 20
Have an interesting problem. I am setting up an app against a DB2 v7 database (antiquated). The app has hibernate persisted objects with property specifications of the type:

<property name="blah" type="text".../>

Where the schema associated with the property in the database has the definition of:

clob(255)

Now... Currently when I go to retrieve objects having these I am getting a SQL Error: -351 back from the DB2 driver which is an error indicating an "unsupported type". I have isolated the problem strictly to this property def on the objects in question.

I have also tried hibernate type= of text, java.sql.Clob, clob... And none of these work.

Some questions:

1. Why use clob(255) versus vchar(255)?
2. Has anyone else seen this issue? Is there another type= specification I can use in the property?
3. Any suggestions.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.