Expert |
 |
Joined: Thu Sep 04, 2003 8:23 am Posts: 368
|
Hi all,
I have a class mapped to a table with a blob column. I don't want to load the blob everytime I load an instance and I prefer not using the lightweight class pattern.
Is there any way for me to achieve that ?
I first thought of a proxied component but saw that this is not possible.
I then tried to split my blob in a separate class with a one-to-one association but I saw on another thread that I can only have one object for one row in the same session : so I think this is not possible (and I can't achieve it)
Finally I am wondering if it would be possible do define a usertype for my blob which contains all the informations to initialize lazily my blob if I need it : is it something affordable ?
Is there another solution that I can try ?
Thanx
Seb
|
|