RE: missing property, but no error

From: Gentry, Michael \(Contractor\) ("Gentry,)
Date: Fri Apr 29 2005 - 13:58:38 EDT

  • Next message: Erik Hatcher: "Re: missing property, but no error"

    Mike is smarter than me. :-)

    Yes, the expression is indeed immutable. Maybe that's why I prefer the
    other way of doing it (who knows). I think I just like seeing the query
    all in one place.

    Good luck, though!

    /dev/mrg

    -----Original Message-----
    From: Mike Kienenberger [mailto:mkienen..laska.net]
    Sent: Friday, April 29, 2005 1:51 PM
    To: cayenne-use..bjectstyle.org
    Cc: cayenne-use..bjectstyle.org
    Subject: Re: missing property, but no error

    Erik Hatcher <eri..hatchersolutions.com> wrote:
    > expression.andExp(ExpressionFactory.matchExp("password",
    password));

    Note that the above code is incorrect.

    You need to use the following.

            expression =
    expression.andExp(ExpressionFactory.matchExp("password",
    password));

    Expressions should be treated as immutable in this context. (like
    BigDecimal.add())



    This archive was generated by hypermail 2.0.0 : Fri Apr 29 2005 - 13:58:43 EDT