-->
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.  [ 5 posts ] 
Author Message
 Post subject: ClobImpl for hibernate3
PostPosted: Thu Mar 24, 2005 2:44 pm 
Beginner
Beginner

Joined: Tue Jan 18, 2005 6:44 pm
Posts: 39
Hi,
Is there a ClobImpl for mapping strings to clobs out there?

Thanks,
Jeevak


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 24, 2005 3:11 pm 
Regular
Regular

Joined: Thu Dec 11, 2003 4:14 pm
Posts: 86
Location: Hibernate 3 + annotations, Oracle 9i, PostgreSQL 8.0, Java 1.5.0
You use Oracle?

I am not sure If you like this solution. But here http://l3x.net/imwiki/Wiki.jsp?page=JdbcOraWrapper
you could find a jdbc wrapper which does this automatically (works with oracle 9) without the needs to change the application code.

rumors are that oracle fixed this with their 10g jdbc driver, though never tried it.

Or see:

http://www.hibernate.org/56.html
http://www.hibernate.org/76.html
http://www.hibernate.org/112.html (mysql)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 24, 2005 3:12 pm 
Regular
Regular

Joined: Thu Dec 11, 2003 4:14 pm
Posts: 86
Location: Hibernate 3 + annotations, Oracle 9i, PostgreSQL 8.0, Java 1.5.0
Oh, and for sure hibernate3 has some support for clobs too
http://www.hibernate.org/250.html.

Again - never tried it.


Top
 Profile  
 
 Post subject: SerializableClob, does it exists?
PostPosted: Fri Mar 25, 2005 5:28 am 
Newbie

Joined: Thu Mar 24, 2005 11:44 am
Posts: 2
imario wrote:


where is the
Code:
org.hibernate.lob.SerializableClob
class?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 25, 2005 5:34 am 
Regular
Regular

Joined: Thu Dec 11, 2003 4:14 pm
Posts: 86
Location: Hibernate 3 + annotations, Oracle 9i, PostgreSQL 8.0, Java 1.5.0
It looks like it was added at 2005-03-02 and thus you might have to use the cvs version of hibernate3.

{{{
im@linTs1:~/projects/Hibernate3> grep -ir SerializableClob *
Übereinstimmungen in Binärdatei build/classes/org/hibernate/lob/SerializableClob.class.
Übereinstimmungen in Binärdatei build/classes/org/hibernate/type/ClobType.class.
Übereinstimmungen in Binärdatei classes/org/hibernate/type/ClobType.class.
Übereinstimmungen in Binärdatei classes/org/hibernate/lob/SerializableClob.class.
src/org/hibernate/lob/CVS/Entries:/SerializableClob.java/1.1/Wed Mar 02 11:43:35 2005//
src/org/hibernate/lob/SerializableClob.java://$Id: SerializableClob.java,v 1.1 2005/03/02 11:43:35 oneovthafew Exp $
src/org/hibernate/lob/SerializableClob.java:public class SerializableClob implements Serializable, Clob {
src/org/hibernate/lob/SerializableClob.java: public SerializableClob(Clob blob) {
src/org/hibernate/type/ClobType.java:import org.hibernate.lob.SerializableClob;
src/org/hibernate/type/ClobType.java: return rs.wasNull() ? null : new SerializableClob(value);
im@linTs1:~/projects/Hibernate3>
}}}


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.