Re: query-attributes?

From: Jürgen Saar (jsaa..eb.de)
Date: Thu Mar 03 2005 - 02:40:04 EST

  • Next message: Joshua Pyle: "Re: query-attributes?"

    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



    This archive was generated by hypermail 2.0.0 : Thu Mar 03 2005 - 02:40:08 EST