Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1244

OData V2: Annotation edm provider ignoring facets set on complex types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • V2 2.0.6, V2 2.0.7, V2 2.0.8, V2 2.0.9, V2 2.0.10
    • None
    • odata2-annotation
    • None

    Description

      When a model is created like
      @EdmEntityType(name = "Employee", namespace = "NAMESPACE_1")
      @EdmEntitySet(name = "Employees")
      public class Employee

      { @EdmKey @EdmProperty(name = "EmployeeId", type = EdmType.STRING, facets = @EdmFacets(nullable = false)) private String employeeId; @EdmProperty(name = "EmployeeName", facets = @EdmFacets(maxLength = 20)) private String employeeName; @EdmProperty private int age; @EdmProperty(name = "Location", facets = @EdmFacets(nullable = false)) private Location location; }

      where the complex type Location has facets nullable=false. The url /$metadata does not show this facet information.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ramya.vasanth Ramya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: