Hi,
I have an entity that holds a Blob, and when the entity is first saved, the blob is null. When I want to associate an inputstream with that blob field, I use a setter method for that blob field, and just set the blob in a session. When the session is complete the blob is in the database and can be retrieved.
Now, I want to change that blob. I use the same code that set it in the first place, while it was null, in that I start a hibernate session, get my new blob inputstream, and set the (new) sql.Blob into the setter for that field, and then end the session.
I don't get an exception in the session completion code, but when I retrieve the blob from the database, it is still the old value!!!
How to do this?
Andy
|