I apologize if this is not the correct forum...
I have a byte[] in an entity that I am annotating with lob and fetch=lazy. Yet when I retrieve it though a session bean, it is fully loaded. I heard that "lazy" is only a hint. It is important that I only lazily load this. Is there a more correct way to do this?
In Entity:
private byte[] data; @Lob @Basic(fetch=FetchType.Lazy) public byte[] getData() { return data; } ...
Forgot to mention I am using jboss-4.0.4.GA with a postgres DB