I have a JPA entity with java.sql.Blob:
@Entity public class LargeData { @Lob private java.sql.Blob data; //getters/setters }
How t
Use a byte array:
@Lob @Column(length=100000) private byte[] data;
If you want to use streams, create the blob using Hibernate.createBlob(..)