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

Yaofeng Xu commented on OLINGO-506:
-----------------------------------

Hi Michael,

Thank you for your fix. The first issue has been solved but not the second 
issue. I think we also need to change line 498 from:
             complexEntityNamespace = defaultNamespace;
to:
             complexEntityNamespace = 
ANNOTATION_HELPER.getCanonicalNamespace(field.getType());

And furthermore to remove the defaultNamespace from the method signature.

Thanks,
Yaofeng

> Issues during annotating a complex type
> ---------------------------------------
>
>                 Key: OLINGO-506
>                 URL: https://issues.apache.org/jira/browse/OLINGO-506
>             Project: Olingo
>          Issue Type: Bug
>          Components: odata2-annotation
>    Affects Versions: V2 2.0.0, V2 2.0.1
>            Reporter: Yaofeng Xu
>            Assignee: Michael Bolz
>             Fix For: V2 2.0.2
>
>         Attachments: issues when annotating a Complex Type.docx
>
>
> 1. When annotating a Complex Type, if the name attribute is not provided, the 
> schema won't be able to detect a correct type name for this complex type 
> property in an entity.
> 2. If name space attribute is not specified in the complex type annotation, 
> the schema will use the entity's namespace as its namespace, which is not 
> necessary always true.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to