Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

@Lob and @Basic(fetch = FetchType.LAZY) doesnt work!

423532Oct 5 2006 — edited Oct 6 2006
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 3 2006
Added on Oct 5 2006
1 comment
2,444 views