Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-816

Improve readNestedProperty() to handle to-many relationships in the path.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.0M6, 3.0
    • Core Library
    • None
    • All

    Description

      Improve readNestedProperty() to handle to-many relationships in the path. This will resolve this documented limitation:

      Read to-many relationship in the middle of the path (throws exception):
      String name = (String)artist.readNestedProperty("paintingArray.paintingName");

      And allow:

      List names = (List) artist.readNestedProperty("paintingArray.paintingName");

      to succeed. I'm not sure if this feature should be added to writeNestedProperty() [see https://issues.apache.org/cayenne/browse/CAY-815 for improvement feature], though.

      Attachments

        Activity

          People

            antidote Andrey Razumovsky
            blacknext Michael Gentry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: