Re: Comparing two Dates in cayenne

From: Dhruti Ramani (dhrutiraman..ahoo.com)
Date: Tue Apr 26 2005 - 18:52:54 EDT

  • Next message: shaun: "Cayenne vs EOF functionality"

    Thank you so much. It works now.
     
    Denna

    Mike Kienenberger <mkienen..laska.net> wrote:
    Dhruti Ramani wrote:
    > But what if I have to use AND in query. For example If i have to find all
    the deals for specific broker and dates between start and end date. How
    would I do that?

    Expression e = anExpression.andExp(Expression anotherExpression);

    Don't make the common mistake of doing the following as Expressions are
    immutable (like BigDecimal) in this context.

    anExpression.andExp(Expression anotherExpression);

    http://www.objectstyle.org/cayenne/userguide/expressions/index.html

    -Mike

    __________________________________________________
    Do You Yahoo!?
    Tired of spam? Yahoo! Mail has the best spam protection around
    http://mail.yahoo.com



    This archive was generated by hypermail 2.0.0 : Tue Apr 26 2005 - 18:52:56 EDT