Re: Query qualifier in modeler (Oups)

From: Oscar Picasso (oscgoogl..ahoo.com)
Date: Thu Oct 06 2005 - 11:50:35 EDT

  • Next message: Dave Merrin: "double inner join"

    Oups. I just realized that I didn't provide the query with the paramters map.

    --- 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
    >

            
                    
    ______________________________________________________
    Yahoo! for Good
    Donate to the Hurricane Katrina relief effort.
    http://store.yahoo.com/redcross-donate3/



    This archive was generated by hypermail 2.0.0 : Thu Oct 06 2005 - 11:50:36 EDT