-->
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.  [ 6 posts ] 
Author Message
 Post subject: BLOB / CLOB, hibernate 2.1.1
PostPosted: Tue Feb 03, 2004 2:04 pm 
Beginner
Beginner

Joined: Thu Dec 11, 2003 9:54 am
Posts: 25
Hi there,

is there an easy way to insert a BLOB / CLOB data to the table without getting a SQL JDBC connection ?

Code:
connection = session.connection();


10x


--awt


Top
 Profile  
 
 Post subject: Re: BLOB / CLOB, hibernate 2.1.1
PostPosted: Tue Feb 03, 2004 2:16 pm 
Beginner
Beginner

Joined: Thu Dec 11, 2003 9:54 am
Posts: 25
And, second problem,
can I insert BLOB without insert first EMPTY_BLOB via JDBC SQL connection ?

--awt


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 03, 2004 2:16 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Of course. Use a java.sql.Blob as property type or read up in the wiki community area and the forum on how to map strings/byte[] as blobs.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 03, 2004 2:17 pm 
Beginner
Beginner

Joined: Thu Dec 11, 2003 9:54 am
Posts: 25
thanks, but could you be so king - please give me a link ?

--awt

gloeglm wrote:
Of course. Use a java.sql.Blob as property type or read up in the wiki community area and the forum on how to map strings/byte[] as blobs.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 03, 2004 2:19 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Well can't you use the website search yourself? Anyways, http://www.hibernate.org/76.html, http://www.hibernate.org/73.html, http://www.hibernate.org/hib_docs/reference/html/or-mapping.html#or-mapping-s1-7


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 03, 2004 2:32 pm 
Beginner
Beginner

Joined: Thu Dec 11, 2003 9:54 am
Posts: 25
thanks, and what about secon problem ? is there a solution (via JDBC)?

gloeglm wrote:


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