I have an object/relational mapping defined using hibernate 3.0. The table contains a binary column that I would like to set as a "lazy property".
When listing records from the table, binary data is downloaded for each record returned in the query resulting in a huge performance hit. Setting the mapping element with the attribute lazy="true" does not accomplish the intented "lazy" load.
The documentation states this is possible, however, I have not been able to successfully implement this. Has anyone been able to get this to work and if so, can you provide the details of how to accomplish this?
Have you done the necessary bytecode instrumentation of your persistant class? Lazy property fetching won't work with a class that is compiled normally. [ December 05, 2005: Message edited by: Paul Sturrock ]