alchemista wrote:
I have this same issue. I have a large byte[] as a property of a dependent component (i.e. it's not an entity so I can't split it up as a different class). I just want that one property to be lazy loaded, not all the others.
Is it really true that the only way to accomplish this is by modifying your class structure?
I'm still trying to discover the elegance everyone says about Hibernate. Every time I need to do something that's more than a simple case, I find Hibernate to largely intrude on my design and require custom code for mappings.
Is is true that we prefer the use of projection rather that property-level lazy fetching, and it is the reason why it is not /yet/ impelmented in Hibernate.
So, you don't strictly have to modify your domaion model. What other domain model modification you had to do?