olingo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ramya (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OLINGO-1244) OData V2: Annotation edm provider ignoring facets set on complex types
Date Mon, 09 Apr 2018 08:27:00 GMT

     [ https://issues.apache.org/jira/browse/OLINGO-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ramya resolved OLINGO-1244.
---------------------------
    Resolution: Fixed

> 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.6, V2 2.0.7, V2 2.0.8, V2 2.0.9, V2 2.0.10
>            Reporter: Ramya
>            Priority: Major
>
> 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)

Mime
View raw message