Quote:
Looks like hibernate treat Blobs as immutable - which means it doesn't have to keep copies of it
That's not for
the hydratedState. The mutability plan specifies if the object internal state can be manipulated. For instance, that's not the case for String, Integer, BigInteger, which are immutable. However, for Calendar, which is mutable, you can alter the internal state.
For Blob, I run a test and it goes into hydratedState as a Proxy. Add a
breakpoint at this line in TwoPhaseLoad to see for yourself.
Quote:
Thanks for replying Vlad and also for all the articles in your blog (I have frequently visited it recently to clarify hibernate issues and usually find the information I need there).
Thanks. If you liked my article, you should subscribe to
my newsletter and make sure you never miss a post.