Thanks for your quick reply.
gavin wrote:
(a) one-to-one may certainly be lazy (use the proxy attribute)
According to the docs the <one-to-one> element does neither support the lazy nor the proxy attribute. Furthermore, the docs seem to imply that specifying a proxy class in the <class> element of a mapping does not in itself enable lazy loading. As I understand it doing so merely tells Hibernate to use the given proxy IF the lazy attribute in, say, a <set> element at the other end of the association is set to 'true'. So do you say that if the target class (Content, in my case) of a one-to-one association specifies a proxy in its mapping Hibernate will automatically use lazy loading?
(b) If supported by your driver You should use a JDBC Blob or Clob to represent the 50 meg of data - these are streamed lazily at the driver level
This is probably not what I need, but I will look into it.
(c) check out the "lightweight class" pattern on the wiki
Thanks for the tip. I will surely do so.