Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-764

BeanAdapter should support Map objects

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.1
    • Component/s: core-beans
    • Labels:
      None

      Description

      BeanAdapter currently does not support the ability to wrap Maps, because it will fail to retrieve the correct getterMethod and setterMethod. My current usecase is that I have a TableView with tableData that consists of objects with path "value-of-type-map.subvalue". The following code should return John Doe in my opinion:

      HashMap root = new HashMap();
      HashMap child = new HashMap();
      child.put("name", "John Doe");
      root.put("child", child);
      System.out.println(JSON.get(root, "child.name"));

      I will provide a patch.

        Attachments

          Activity

            People

            • Assignee:
              smartini Sandro Martini
              Reporter:
              edvin Edvin Syse
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: