Re: Faulting nested relationships

From: Michael Gentry (blacknex..mail.com)
Date: Tue Dec 11 2007 - 15:42:05 EST

  • Next message: Kevin Menard: "Re: Faulting nested relationships"

    What does your Order#getShipments() look like?

    Thanks,

    /dev/mrg

    On Dec 11, 2007 3:37 PM, Kevin Menard <kmenar..ervprise.com> wrote:
    > Hi,
    >
    > I have a nested relationship that I can't seem to update. I have something
    > like the following:
    >
    > Order ---* OrderEntry ---* ShipmentEntry ---* Shipment
    >
    > I added a nested relationship on Order to Shipment so I wouldn't have to
    > manually traverse all of that.
    >
    > If I create a new Shipment and associate a ShipmentEntry with it that is in
    > turn associated with an OrderEntry, a call to Order#getShipments() will not
    > recognize the new Shipment. If I manually traverse the path, however, the
    > data is correct. Grabbing a new context, the call to Order#getShipments()
    > is correct.
    >
    > I've tried using variants of RefreshQuery to no avail. So, any help would
    > be appreciated. This is in Cayenne 3.0-trunk in an ROP client environment.
    >
    > If I can't get that going, I'll just have to write my own getShipments() I
    > guess.
    >
    > Thanks,
    > Kevin
    >
    >



    This archive was generated by hypermail 2.0.0 : Tue Dec 11 2007 - 15:42:37 EST