Ramya created OLINGO-1244:
-----------------------------

             Summary: OData V2: Annotation edm provider ignoring facets set on 
complex types
                 Key: OLINGO-1244
                 URL: https://issues.apache.org/jira/browse/OLINGO-1244
             Project: Olingo
          Issue Type: Bug
          Components: odata2-annotation
    Affects Versions: V2 2.0.10, V2 2.0.9, V2 2.0.8, V2 2.0.7, V2 2.0.6
            Reporter: Ramya


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to