Re: query-attributes?

From: Joshua Pyle (joshua.t.pyl..mail.com)
Date: Thu Mar 03 2005 - 03:27:34 EST

  • Next message: Robert Zeigler: "Re: query-attributes?"

    I think he wants to be able to define that filter in the modler so the
    DB is queried using the filter.

    On Thu, 03 Mar 2005 08:40:04 +0100, Jürgen Saar <jsaa..eb.de> wrote:
    > I don't know if I have the right understanding for your problem.
    >
    > Do you want to set a filter for the List of objects living in a relation?
    >
    > cayenne-use..bjectstyle.org schrieb am 03.03.05 04:54:10:
    > >
    > > Is it possible to define a query which is then used
    > > as the basis for an attribute or relationship of an object?
    > > Basically, the situation is that I have table A with a field "ID".
    > > Table B has a field for tableAID, and are "children objects". However,
    > > I want to define a relationship that only grabs a subset of the children
    > > objects (ie, all of table b objects which have tableAID = table A.ID
    > > which also satisfy some other criteria). Is this possible? I know I
    > > could define a java method, getSubsetOfChildren or some such where I
    > > either do an in-memory filter of the child objects or else where I just
    > > run a named query and return the resulting objects. I was just curious
    > > if there was a way to map this directly. Thanks in advance!
    > >
    > > Robert
    >
    > ______________________________________________________________
    > Verschicken Sie romantische, coole und witzige Bilder per SMS!
    > Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
    >
    >

    -- 
    Joshua T. Pyle
    Go has always existed.
    



    This archive was generated by hypermail 2.0.0 : Thu Mar 03 2005 - 03:28:05 EST