I'm trying to use @Lob with lazy loading but it doesn't work.
How can I lazy load a blob/clob? (without using another table) Is it possible?
SGDB is oracle 10.2.0.2.0
Oracle JDBC driver Version: 10.1.0.5.0.
I'm using the JavaServiceFacade generated by JDev10131.
TopLink version: Oracle TopLink Essentials - 2006.7 (Build 060720)
@Entity
@NamedQuery(name = "Doc.findAll", query = "select o from Doc o")
@Table(name = "DOCS")
public class Doc implements Serializable {
@Lob
@Basic(fetch=FetchType.LAZY)
private byte[] doc;
@Id
@Column(nullable = false)
private Long id;
public Doc() {
}
public byte[] getDoc() {
return doc;
}
....gets/sets