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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Mapping a Blob to a byte[] in hibernate 3
 
Similar Threads
Problem in matching property type
Caught a NonUnique Exception while adding more rows to the table.
Hibernate exception in OneToOne mapping
overriding JDBCRealm
phone listener is not working properly