[
https://issues.apache.org/jira/browse/OLINGO-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13903901#comment-13903901
]
Chandan V.A commented on OLINGO-148:
------------------------------------
Hi ,
You can only remove the entity properties or entity types from the EDM.
You can do this by maintaining the OData - JPA mapping model for your JPA model
as explained here -
http://olingo.incubator.apache.org/doc/tutorials/jparedefinemetadata.html.
Just add the attribute "exclude=true" for the JPAAttribute elemente.
Example
<JPAAttribute name="soId exclude=true" / >
Regards
Chandan
> How we can remove <Id> tag which contains the URL in response xml
> ------------------------------------------------------------------
>
> Key: OLINGO-148
> URL: https://issues.apache.org/jira/browse/OLINGO-148
> Project: Olingo
> Issue Type: Wish
> Components: odata2-jpa
> Reporter: Gaurav Garg
> Assignee: Michael Bolz
>
> Hi there,
> I want to remove the <Id> tag from response xml, because it contains the URL
> in which it shows the primary key of the record. but i dont want to show it
> to client. Please suggest.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)