Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Blob question
Blob question [message #387928] Mon, 18 May 2009 21:21 Go to next message
hanys is currently offline hanysFriend
Messages: 188
Registered: July 2009
Senior Member
Hello,

I have an Entity which I want to have a much data as its part.
And I don't want to have all data in the memory like using byte[].
Instead I want to use java.sql.Blob to store it.

How can I write a DAO object accessing the database for save/load using
EclipseLink and JPA?
Using hibernate it's done like Hibernate.createBlob.
How can I do it using EclipseLink?

I haven't found anything in google, that's why I am asking here.

Can you please help me.

BR,
Jan
Re: Blob question [message #387937 is a reply to message #387928] Tue, 19 May 2009 17:42 Go to previous messageGo to next message
hanys is currently offline hanysFriend
Messages: 188
Registered: July 2009
Senior Member
I found that JPA doesn't support streaming of blobs.


"Jan" <ahanys@seznam.cz> p
Re: Blob question [message #387950 is a reply to message #387937] Tue, 19 May 2009 19:46 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

You best bet is probably to access through JDBC.

You could probably map an attribute of type Blob directly, but it may not
be very useful.

---
James
http://www.nabble.com/EclipseLink---Users-f26658.html


James : Wiki : Book : Blog : Twitter
Previous Topic:ORA-01461:can bind a LONG value only for insert into a LONG column
Next Topic:getting the active JPA UnitOfWork
Goto Forum:
  


Current Time: Mon Dec 22 23:37:38 GMT 2014

Powered by FUDForum. Page generated in 0.01909 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software