Re: Direct mapping between Named query and Pojo

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Mar 02 2010 - 09:58:06 EST

  • Next message: Michael Martineau: "Re: Using the Cayenne API to dynamically create DataDomains"

    Named queries behave the same way as API-based queries. So you can
    used a named query to get a list of DataObjects:

    http://cayenne.apache.org/doc30/namedquery.html

    Not clear if this is what you meant by POJOs?

    And of course they can also perform updates and EJBQL named queries
    can return lists of scalars, etc.

    Andrus

    On Mar 1, 2010, at 11:19 PM, Sudheer wrote:

    >
    > Is it possible to have ditect mapping between named query and pojo?
    > If not
    > mapping, is there API to convert named query result to a pojo list?
    >
    > I am using Cayenne 3.0.
    >
    > Thanks in advance :).
    > --
    > View this message in context: http://n3.nabble.com/Direct-mapping-between-Named-query-and-Pojo-tp423239p423239.html
    > Sent from the Cayenne - User mailing list archive at Nabble.com.
    >



    This archive was generated by hypermail 2.0.0 : Tue Mar 02 2010 - 09:58:40 EST