-->
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.  [ 4 posts ] 
Author Message
 Post subject: Oracle type-mapping for CLOB
PostPosted: Sun Sep 25, 2005 9:57 am 
Newbie

Joined: Thu Feb 19, 2004 10:25 pm
Posts: 16
Does anyone know what the oracle Oracle 10g type-mapping for CLOB would be .reveng.xml or at least tell me how I can figure it out?

TIA,

_________________
-Scott-


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 25, 2005 10:06 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
find out what the type code is when returned from the jdbc metadata and use that number in the sql-type field.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 25, 2005 10:55 am 
Newbie

Joined: Thu Feb 19, 2004 10:25 pm
Posts: 16
Hi max, thanks for your quick reply. But I'm a bit green still and would not know how to:

max wrote:
find out what the type code is when returned from the jdbc metadata and use that number in the sql-type field.


...to give you a bit more info. i'm trying to use hibernate-tools to run the hbm2java ant task and i'm getting the "java.lang.Object spans multiple columns" exception and I think its because of a CLOB field I'm using. So I think if I could find the correct

Code:
<sql-type jdbc-type="XXX" hibernate-type="xxx" />


line it will resolve the issue. But this is my first step in using hibernate to do anything substantial. So could you please give me a bit more detail or point me in the right direction? Your help is much appreciated.

TIA,
[/quote]

_________________
-Scott-


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 25, 2005 12:39 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
I would put BLOB or CLOB in the sql-type and text/binary or whatever you want it mapped to (read about that in the hibernate docs)

If it doesn't fit then you will need to find out which java.sql.Types constant it is actually mapped to ?

/max

_________________
Max
Don't forget to rate


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

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.