Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » Blob question
Blob question [message #387928] Mon, 18 May 2009 17:21 Go to next message
Eclipse UserFriend
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 13:42 Go to previous messageGo to next message
Eclipse UserFriend
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 15:46 Go to previous message
Eclipse UserFriend
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
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: Wed Jul 23 12:53:18 EDT 2025

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

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

Back to the top