I have a blob which I want to be fetched lazily however the sql logging shows that it is being fetched in one go with the other attributes.
Code:
/**
* The actual data for the attachment.
*/
@Lob
@Basic(fetch = FetchType.LAZY)
@Column(name = "DATA")
private Blob data;
Should this work as I expect? This was tested with an in-memory hsqldb but it will eventually be used to store very large files in mysql.
Versions:
- hibernate 3.2.0-cr1
- hibernate-annotations 3.1beta9
- hibernate-entitymanager 3.1beta7
cheers