i try to find the best way to fetch a blob:
I found javassit instrumentation
Or implementing FieldHandled
Use "fake" one-to-one mappings instead of properties. Remove the LOB fields from your existig class, create new classes referring to the same table, same primary key, and only the necessary LOB fields as properties. Specify the mappings as one-to-one, fetch="select", lazy="true". So long as your parent object is still in your session, you should get exactly what you want.
Is there any other solution. What is the best aproach?
Why not use the standard @Lob annotation, here is docs. Its standard and portable
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With