Re: parent object of DataObject

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Jun 24 2005 - 09:35:55 EDT

  • Next message: Cris Daniluk: "Re: Weird classpath issue using DefaultConfiguration during unit testing"

    I see. No, there is nothing in Cayenne that would help you with that. And
    the reason is that fundumentally there is no notion of "root" or a "tree"
    in Cayenne. From Cayenne standpoint DataObjects form a *graph* (with
    possible loops, etc). So it can't say which node in the graph is a root -
    it depends on your busness-specifc interpretation.

    Andrus

    > Hi Andrus,
    >
    > no, ...
    >
    > as ORM, cayenne generates an object-tree.
    > In traditional tree-Objects every node
    > has an information about its parent object.
    >
    > If I'm within a relation, this could be found via the reverse-relation.
    > My Problem is, that within the DataObject I have no Information
    > about the place in hierchie in the actual Xobject.
    >
    > I don't know if it's the root-object or in a relation
    > what would be helpful in the validate or something like this.
    >
    > I solved the problem with an enhanced DataObject
    > and a special List for the Relation-Objects,
    > but wanted to be sure that haven't overlooked
    > someting in cayenne doku.
    >
    > ---Juergen---
    >
    > cayenne-use..bjectstyle.org schrieb am 23.06.05 15:49:32:
    >>
    >>
    >> Hi Juergen,
    >>
    >> Looks like what you are looking for is bi-directional object
    >> relationships. Or is this something else?
    >>
    >> Andrus
    >>
    >> On Jun 23, 2005, at 2:33 AM, Jürgen Saar wrote:
    >>
    >> > Hi,
    >> >
    >> > is there a way to find out,
    >> > what parent object belongs to my DataObject?
    >> >
    >> > Sometimes it would be helpful to know
    >> > where within the object-tree my actual
    >> > DataObject belongs.
    >> >
    >> >
    >> > Thanx
    >> > ---Juergen---
    >
    >
    > _________________________________________________________________________
    > Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle
    > Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179
    >
    >
    >
    >



    This archive was generated by hypermail 2.0.0 : Fri Jun 24 2005 - 09:35:56 EDT