How to prevent Cayenne from fetching BLOB fields ?

From: Pierre Lavignotte (pierre.lavignott..mail.com)
Date: Tue Oct 07 2008 - 12:26:15 EDT

  • Next message: Scott Anderson: "RE: How to prevent Cayenne from fetching BLOB fields ?"

    Hello,

    I use Apache Cayenne for a while now with no problem, but I went into a new
    issue today.

    I have an Oracle data table containing 2 BLOB fields.
    When I get the rows from this table, Cayenne also fetches the BLOB data, so
    the query is veeeeery long, or I get a time out exception.

    I tryed :

    SelectQuery query = new SelectQuery(MyClass.class);
    query.setFetchingDataRows(false);
    context.performQuery(query);

    and to define an Object Select Query in the modeler but the result is the
    same.

    What I would like is the BLOB data to be fetched only on demand, when I call
    the myEntity.getMyBlobField() method.

    Did I miss someting ?

    Thank you for your help,
    Pierre



    This archive was generated by hypermail 2.0.0 : Tue Oct 07 2008 - 12:26:46 EDT