Re: Faulting nested relationships

From: Kevin Menard (kmenar..ervprise.com)
Date: Tue Dec 11 2007 - 15:45:02 EST

  • Next message: Michael Gentry: "Re: Faulting nested relationships"

    It's a mapped relationship.

    Target: Shipment
    Collection Type: java.util.List

    Mapping to DbRelationships:

    orderedItems [orders -> order_entries]
    shipmentEntries [order_entries -> shipment_entries]
    shipment [shipment_entries -> shipments]

    Thanks,
    Kevin

    On 12/11/07 3:42 PM, "Michael Gentry" <blacknex..mail.com> wrote:

    > 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:45:41 EST