Re: Query qualifier in modeler

From: Joshua Pyle (joshua.t.pyl..mail.com)
Date: Thu Oct 06 2005 - 15:11:58 EDT

  • Next message: Andrus Adamchik: "1.2M6 is out"

    chechout the docs ...
    http://objectstyle.org/cayenne/userguide/fetch/datamap-queries.html

    SelectQuery query = prototype.queryWithParameters(params);

    // 3. execute query
    List objects = context.performQuery(query);

    --
    Joshua T. Pyle
    Go has always existed.
    

    On 10/6/05, Oscar Picasso <oscgoogl..ahoo.com> wrote: > Hi, > > How is supposed to work the query qualifier in the modeler? > > I have the following in the modeler: > Query name: findUserByEmail > Query Root: User > Qualifier: email = $email > > I have checked that the resulting cayenne.xml as the qualifier element with the > expression above. > > But when I run: > ... > params.put("email", email); > users = context.performQuery("findUserByEmail", false); > ... > > Here is how the sql query is logged: > > SELECT <user-columns>... FROM USERS t0 > > There is no WHERE clause. > > Thanks > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com >



    This archive was generated by hypermail 2.0.0 : Thu Oct 06 2005 - 15:11:59 EDT