-->
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: Creating and storing Blobs
PostPosted: Fri Mar 19, 2004 6:56 pm 
Newbie

Joined: Mon Mar 08, 2004 6:45 pm
Posts: 6
I want to store an Object in a mysql database as a blob. The table row will have 2 columns one for the PK and one for the Object. Is it a simple matter of storing the object in the database as long as the O/R mapping specifies the column to be a blob.? Or do I need to convert the Object into a java.sql.Blob type?

I have searched the forum and looked through the manual but I haven't seen anything that points me in the right direction. I will continue looking, but I would appreciate any help.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 19, 2004 7:10 pm 
Beginner
Beginner

Joined: Mon Mar 08, 2004 5:22 pm
Posts: 35
sorry for not giving the entire syntax. i am not work. did you try SQL-TYPE attribute in mapping ?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 19, 2004 7:30 pm 
Newbie

Joined: Mon Mar 08, 2004 6:45 pm
Posts: 6
I haven't tried anything yet. I'm trying to understand how it works first. Basically I have an object of any type. I want to store it as a blob.

I noticed that there is a Hiberbate.createBlob method but it is unclear as to when one would call this, before the insert or after the retrieve.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 26, 2004 6:20 pm 
Newbie

Joined: Mon Mar 08, 2004 6:45 pm
Posts: 6
I found out my answer so never mind.


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.