<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to get data from extensible entity using Odata in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-get-data-from-extensible-entity-using-odata/m-p/453774#M13968</link>
    <description>&lt;P&gt;No , Its a standard camel case notation in which the getter (and setter) are generated.As it is an extensible attribute odata need to understand this and get the attribute using the get/set method defined in eclipselink-orm.xml file..which is not happening&lt;/P&gt;
  &lt;P&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2017 08:27:51 GMT</pubDate>
    <dc:creator>former_member331791</dc:creator>
    <dc:date>2017-07-25T08:27:51Z</dc:date>
    <item>
      <title>Unable to get data from extensible entity using Odata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-get-data-from-extensible-entity-using-odata/m-p/453772#M13966</link>
      <description>&lt;P&gt;We are working on implementing an application using Olingo (2.0.6) , Springboot (1.3.2) and eclipse link(2.5.0). &lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt;The application expects entities to be extensible the user should be able to add the columns to the entities in the runtime. &lt;BR /&gt;I used the @VirtualAccessMethods as mentioned in the documentation (&lt;A href="http://www.eclipse.org/eclipselink/documentation/2.5/solutions/extensible001.htm"&gt;http://www.eclipse.org/eclipselink/documentation/2.5/solutions/extensible001.htm&lt;/A&gt;)&lt;BR /&gt;The steps mentioned successfully adds the field to the entity in the metadata and also I'm able to save the data in the database programmatically. &lt;BR /&gt;&lt;BR /&gt;I am facing two issue with the implemention -&lt;BR /&gt;&lt;BR /&gt;• &lt;STRONG&gt;&lt;U&gt;Issue 1 -&lt;/U&gt; &lt;/STRONG&gt;When I try to do a OData GET request on the extended entity I get an error saying the getter method for the field is missing in the entity. Though ,the extension map contains the data fetched from the database but it is not mapped to the field name in the metadata. &lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
  &lt;UL&gt;&lt;/UL&gt;
  &lt;BR /&gt;Example --- I added a field 'thebirthplace' in my entity(General_data) mapping to a field EXT_1 in the table. When I make a GET request (localhost:8080/mdm/General_datas) I get the following error 
  &lt;BR /&gt;"org.apache.olingo.odata2.jpa.processor.core.access.data.JPAEntityParser:.mdm.entity.General_data.getThebirthplace(). " 
  &lt;BR /&gt;
  &lt;BR /&gt;
  &lt;BR /&gt;The question is do we need to do the reverse mapping too . Field name -&amp;gt; attribute name. Or am I missing something?
  &lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 15:28:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-get-data-from-extensible-entity-using-odata/m-p/453772#M13966</guid>
      <dc:creator>former_member331791</dc:creator>
      <dc:date>2017-07-24T15:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get data from extensible entity using Odata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-get-data-from-extensible-entity-using-odata/m-p/453773#M13967</link>
      <description>&lt;P&gt;Does the case matter? &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/55617-case.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 03:59:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-get-data-from-extensible-entity-using-odata/m-p/453773#M13967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-07-25T03:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get data from extensible entity using Odata</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-get-data-from-extensible-entity-using-odata/m-p/453774#M13968</link>
      <description>&lt;P&gt;No , Its a standard camel case notation in which the getter (and setter) are generated.As it is an extensible attribute odata need to understand this and get the attribute using the get/set method defined in eclipselink-orm.xml file..which is not happening&lt;/P&gt;
  &lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 08:27:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unable-to-get-data-from-extensible-entity-using-odata/m-p/453774#M13968</guid>
      <dc:creator>former_member331791</dc:creator>
      <dc:date>2017-07-25T08:27:51Z</dc:date>
    </item>
  </channel>
</rss>

