-->
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: SerializableBlob migration problem
PostPosted: Mon Sep 19, 2011 2:35 pm 
Newbie

Joined: Fri Mar 28, 2008 7:26 pm
Posts: 2
Hello,

I'm migrating from 3.1 to 3.6 and have a problem to retrieve BLOB object, can't compile the following code, which works fine in 3.1:

[code]
Query q = session.createSQLQuery("select data from table")
.addScalar("data", Hibernate.BLOB);
List<Object[]> results = q.list();
Object[] first = results.get(0);
SerializableBlob blob = (SerializableBlob)first[0];
ObjectInputStream ois = new ObjectInputStream( blob.getBinaryStream());
ArrayList dataList = (ArrayList)ois.readObject();
[/code]

SerializableBlob not found. Can anyone give a hint or better an example how to retrieve blobs in hibernate 3.6 using queries and scalars?
I can't find any example of SerializableBlobProxy, any help would be appreciated.

Thanks in advance and best regards,
Ian


Top
 Profile  
 
 Post subject: Re: SerializableBlob migration problem
PostPosted: Tue Feb 14, 2012 5:23 am 
Newbie

Joined: Mon Feb 13, 2012 10:47 pm
Posts: 3
Hi,
I am also facing somehow same problem....did you find any solution for if so how did you solve it?

thanks


Top
 Profile  
 
 Post subject: Re: SerializableBlob migration problem
PostPosted: Tue Feb 21, 2012 6:14 pm 
Newbie

Joined: Tue Feb 21, 2012 6:11 pm
Posts: 1
Hi

I´m having the same problem, did you found any solution

Thanks

_________________
Fido
Software Architect


Top
 Profile  
 
 Post subject: Re: SerializableBlob migration problem
PostPosted: Wed Mar 07, 2012 12:06 am 
Newbie

Joined: Mon Feb 13, 2012 10:47 pm
Posts: 3
Please, anyone could give us any clue?


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.