Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.2 branch
    • Fix Version/s: Undefined future
    • Component/s: Core Library
    • Labels:
      None

      Description

      This is somewhere between a bu and a new feature. Normally Cayenne allows uni-directional mapping of ObjRelationships, as long as underlying DbRelationships
      are bi-directional.

      Problem:

      Uni-directional to-many do not work. Symptom of this is saving a FK column value of the "to-many" side object as NULL, when it was added to the parent object via "parent.addToXyzArray(child)".

      This was originally reported by Scott Merritt. His example is attached to the bug report.

      [LATER COMMENT BY ARNDT]

      we just stumbled over this same problem, went all the way through debugging it and finally found the unit-test that is supposed
      to test this.

      OneWayOneToManyTst.testReadList()

      However, the assertion assertNotNull(a2) is really misleading - it suggests that this is a successfull test, but the result in fact is totallay wrong! (empty list instead of
      2 entries)

      so I have difficulties qualifiyng this as a "missing feature", and I would like to see at least to have this constraint added
      to the datamap-validation to see a warning
      about this.

      Or , of course, even better - make it work

      regards,

      Arndt

        Activity

        Ari Maniatis made changes -
        Issue Type New Feature [ 2 ] Improvement [ 4 ]
        Ari Maniatis made changes -
        Workflow jira [ 12456499 ] Cayenne workflow [ 12487150 ]
        Henri Yandell made changes -
        Project Import Sat Mar 21 00:51:04 PDT 2009 [ 1237621864637 ]
        Andrus Adamchik made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Won't Fix [ 2 ]
        Andrus Adamchik made changes -
        Fix Version/s AFTER 1.2 [ 10031 ]
        Fix Version/s 1.2 [DEV] [ 10030 ]
        Andrus Adamchik made changes -
        Status In Progress [ 3 ] Assigned [ 2 ]
        Andrus Adamchik made changes -
        Status Assigned [ 2 ] In Progress [ 3 ]
        Andrus Adamchik made changes -
        Fix Version/s 1.1 [DEV] [ 10001 ]
        Affects Version/s AFTER 1.1 [ 10030 ]
        Affects Version/s 1.1 [DEV] [ 10001 ]
        Affects Version/s 1.0 [STABLE] [ 10000 ]
        Fix Version/s AFTER 1.1 [ 10030 ]
        Andrus Adamchik made changes -
        Fix Version/s 1.0 [STABLE] [ 10000 ]
        Andrus Adamchik made changes -
        Affects Version/s 1.0 [ 10000 ]
        Affects Version/s 1.1 [ 10001 ]
        Fix Version/s 1.0 [ 10000 ]
        Fix Version/s 1.1 [ 10001 ]
        Component/s Cayenne Core Library [ 10000 ]
        Andrus Adamchik made changes -
        Priority Major [ 3 ] Minor [ 4 ]
        Andrus Adamchik made changes -
        Field Original Value New Value
        Attachment cayenneTest.zip [ 10000 ]
        Andrus Adamchik created issue -

          People

          • Assignee:
            Andrus Adamchik
            Reporter:
            Andrus Adamchik
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development