[ 
https://issues.apache.org/jira/browse/OLINGO-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16407569#comment-16407569
 ] 

Ramya commented on OLINGO-1244:
-------------------------------

This is fixed as part of the commit 
https://git-wip-us.apache.org/repos/asf?p=olingo-odata2.git;a=commit;h=91bd4b897683f69b6f877a2ea630af4c2dde46e2

> 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)

Reply via email to