I am having trouble to understand how does lazy property being fetched.
I read the documentation and have my code instrumented.
I am using Hibernate 3.2.5 with Oracle 10gR2.
I have in my entity class a property:
Code:
@Lob @Basic(fetch = FetchType.LAZY)
@Column(name = "SNAPSHOT", nullable = false)
private byte[] image;
I do not want it fetched when I am retrieving a list of entities or using anything else but find(). When I am getting the entity by its primary key,
I
do want it fetched.
But I am always getting null on this property.
Can someone tell me what I am doing wrong and how to make it work.
if I missed something in TFM, please tell me the paragraph number, as I can't find it.
Thanks