Re: working with views

From: tnaki..ofthome.net
Date: Thu Apr 14 2005 - 04:08:37 EDT

  • Next message: Pirola Davide: "How i can read at runtime datasource info?"

    Andrus Adamchik wrote:

    >> I had hoped SQLTemplate would do the trick, but it needs a root
    >> object and I don't have one.
    >
    > It will. If you fetch "data rows" instead of objects, root is simply
    > used to determine which DataNode to connect to. So it can be any
    > class from the same DataMap. If you fetch DataObjects, then well..
    > root is naturally the class that you fetch (so you do have one).

    That's what set me on the wrong track: I tried using DataObjects and got
    nowhere.

    > http://objectstyle.org/cayenne/api/cayenne/org/objectstyle/cayenne/
    > query/SelectQuery.html#setFetchingDataRows(boolean)
    >
    > http://objectstyle.org/cayenne/userguide/perform/data-rows.html

    Thanks,
    Tomislav



    This archive was generated by hypermail 2.0.0 : Thu Apr 14 2005 - 04:04:46 EDT