Hi
I am using Java 1.4, Hibernate 3. Until now i have used session.saveOrUpdate for save operation. Due to some problems in saving detached object, i started using session.merge().
Now there is new issue that i came across recently, for example, i have
Code:
ObjA --> list of documents (Document|name, desc, blob|)
when i try to save this using session.merge, the blob does not get created.
For the Document object, i am setting its blob something like this
Code:
doc.setBlob(Hibernate.createBlob(file.getInputStream()));
How do I fix this issue? Has anyone faced a similar issue before, how was it fixed? Pls help