Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-311

TypeDiscoverer fails to resolve properties expressed through read methods in supertypes

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.1, 1.6 M1
    • Component/s: Core
    • Labels:
      None

      Description

      interface Identifiable {
        String id;
      }
      
      interface Category extends Identifiable { }
      
      interface Product {
        Category category;
      }
      
      TypeInformation info = ClassTypeInformation.from(Product.class);
      assertThat(info.getProperty("category.id", is(notNullValue())));
      

      This fails as the PropertyDescriptor looked up in getPropertyInformation(…) is looked up for the direct type only, not inspecting super types.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                olivergierke Oliver Gierke
                Reporter:
                olivergierke Oliver Gierke
                Last updater:
                Oliver Gierke
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: