I have a @Lob member variable in one of my Entities. If I annotate the
field fetch=FetchType.LAZY
and try to get its value using variable's get method, I always get null.

However, if I change the fetch to be EAGER (without any other change in
the entire code), I get the value I supposed to get.

Is there a known issue w.r.t the LAZY fetch type in general or am I
missing something simple?


@Lob
@Basic(fetch = FetchType.LAZY)
private String address;

public String getAddress() {
   return this.address;
}

Reply via email to