Re: boolean expressions

From: Mike Kienenberger (mkienen..mail.com)
Date: Sat Nov 19 2005 - 20:52:03 EST

  • Next message: Gentry, Michael \(Contractor\): "RE: Modeler - Names at singular after reverse engineering?"

    I just had the need for something like that myself.

    Comparing an int with a string.

    On 11/19/05, Andrus Adamchik <andru..bjectstyle.org> wrote:
    > We should support that, but looks like there is no Jira issue (and
    > hence - no activity) - we need to open one.
    >
    > On a related note, there have been requests to do on the fly type
    > conversions when evaluating expressions in memory (e.g. when doing a
    > comparison across different numeric types). Now such functionality
    > also seems within reach - new "cayenne.property" package has a number
    > of non-public converters that do something similar already.
    >
    > Andrus
    >
    >
    >
    > On Nov 18, 2005, at 7:05 PM, Cris Daniluk wrote:
    >
    > > I'm having a little bit of trouble using Expression.fromString with
    > > integer fields that are mapped as booleans... for some reason, the BNF
    > > doesn't include true/false, but because the ObjEntity treats the
    > > property as a boolean, I can't just search with 1/0. It seems to me
    > > like either 1/0 should be supported for booleans, or TRUE/FALSE should
    > > be added to the BNF (or both).
    > >
    > > I found this post, where Andrus agreed:
    > >
    > > http://www.objectstyle.org/cayenne/lists/cayenne-user/
    > > 2004/05/0027.html
    > >
    > > But no further activity. I'm not sure what the difficulty of adding it
    > > is, as I'm not very familiar with the JavaCC...
    > >
    > > Cris
    > >
    > >
    >
    >



    This archive was generated by hypermail 2.0.0 : Sat Nov 19 2005 - 20:52:05 EST