olingo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "V.A, Chandan" <chandan....@sap.com>
Subject RE: NOT exposing a single JPA entity in the JPA model
Date Tue, 15 Dec 2015 12:38:13 GMT
Hello Richard,
This is possible via mapping XML. You need to add the attribute exclude = true to the JPAEntityType
XML elememt.

       <PersistenceUnit name="salesorderprocessing">
                     <JPAEntityType name="Customer" exclude=”true”>

Kind Regards

From: Birenheide, Richard [mailto:richard.birenheide@sap.com]
Sent: Tuesday, December 15, 2015 2:59 PM
To: user@olingo.apache.org
Subject: NOT exposing a single JPA entity in the JPA model


in V2 JPA mapping, is it possible to have an entity in the JPA model and not to expose it
in the service?

Use case: I have user header data, which I wish to expose and user details which should be
exposed only to the individual user (like notification settings) by mean s of function imports.
Therefore it would be useful to have both entities in the same model, but only expose insensitive
data as entity set.


Dr. Richard Birenheide
Development Architect
Suite Architecture
Dietmar-Hopp-Allee 16,
69190 Walldorf
T +49 / 6227 / 7-42303
F +49 / 6227 / 7835816
E richard.birenheide@sap.com<mailto:richard.birenheide@sap.com>
Pflichtangaben/Mandatory Disclosure Statements: http://www.sap.com/company/legal/impressum.epx
Diese E-Mail kann Betriebs- oder Geschäftsgeheimnisse oder sonstige vertrauliche Informationen
enthalten. Sollten Sie diese E-Mail irrtümlich erhalten haben, ist Ihnen eine Kenntnisnahme
des Inhalts, eine Vervielfältigung oder Weitergabe der E-Mail ausdrücklich untersagt. Bitte
benachrichtigen Sie uns und vernichten Sie die empfangene E-Mail. Vielen Dank.
This e-mail may contain trade secrets or privileged, undisclosed, or otherwise confidential
information. If you have received this e-mail in error, you are hereby notified that any review,
copying, or distribution of it is strictly prohibited. Please inform us immediately and destroy
the original transmittal. Thank you for your cooperation.

View raw message