Compound expressions Problem and solution

From: Joshua Pyle (joshua.t.pyl..mail.com)
Date: Mon May 16 2005 - 13:43:49 EDT

  • Next message: Cris Daniluk: "Re: Compound expressions Problem and solution"

    One of our developers, new to cayenne, recently ran in to this problem...

    (didn't work)
    Expression exp = ExpressionFactory.matchExp(
    AuthUserAttribute.ATTR_NAME_PROPERTY, testAttributeName);
    exp.andExp(ExpressionFactory.matchExp(AuthUserAttribute.USERNAME_PROPERTY,
    testUser));

    (works)
    Expression exp = ExpressionFactory.matchExp(
    AuthUserAttribute.ATTR_NAME_PROPERTY, testAttributeName);
    exp = exp.andExp(ExpressionFactory.matchExp(
    AuthUserAttribute.USERNAME_PROPERTY, testUser));
     It seem smalll but could cost a developer significant time.

    -- 
    Joshua T. Pyle
    Go has always existed.
    



    This archive was generated by hypermail 2.0.0 : Mon May 16 2005 - 13:43:50 EDT