File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Mapping a Blob to a byte[] in hibernate 3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Mapping a Blob to a byte[] in hibernate 3" Watch "Mapping a Blob to a byte[] in hibernate 3" New topic
Author

Mapping a Blob to a byte[] in hibernate 3

ken carlino
Greenhorn

Joined: Nov 06, 2006
Posts: 10
Hi,

I am trying to map map a Blob to a byte[] in hibernate 3.
So I following this example http://www.hibernate.org/73.html (based on hibernate 1.3.2), and create my BinaryBlob Type.

But when I run it , i get this exception, can you please tell me what did i do wrong?



Here is my code:
 
GeeCON Prague 2014
 
subject: Mapping a Blob to a byte[] in hibernate 3