<?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 Odata V4 String[] mapping in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/odata-v4-string-mapping/m-p/12682517#M2017079</link>
    <description>&lt;P&gt;Good day&lt;BR /&gt;&lt;BR /&gt;I am wondering if anyone has experienced any issues with mapping a String[] Data type&lt;BR /&gt;I am currently using PostgreSQL with Odata V4 Olingo and JPA and Hibernate&lt;BR /&gt;This is what entity looks like an how I have done the mapping:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;@Entity&lt;BR /&gt;@Table(name = "ide")&lt;BR /&gt;@TypeDefs({&lt;BR /&gt;        @TypeDef(name = "string-array",&lt;BR /&gt;               typeClass = StringArrayType.class&lt;BR /&gt;        )&lt;BR /&gt;})&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt;@Type(type = "string-array")&lt;BR /&gt;@Column(name = "RN", columnDefinition = "text[]")&lt;BR /&gt;private String[] rn;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;BR /&gt;this is the response that I get:&lt;/P&gt;
  &lt;P&gt; &lt;BR /&gt;{"error": {"code": null,"message": "com.sap.olingo.jpa.metadata.core.edm.mapper.exception.ODataJPAModelException: Type '[Ljava.lang.String;' of attribute 'rn' is not supported. Mapping not possible. If '[Ljava.lang.String;' is an enumeration, check if related package is provided."}}&lt;/P&gt;</description>
    <pubDate>Tue, 29 Nov 2022 18:44:24 GMT</pubDate>
    <dc:creator>former_member1077671</dc:creator>
    <dc:date>2022-11-29T18:44:24Z</dc:date>
    <item>
      <title>Odata V4 String[] mapping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/odata-v4-string-mapping/m-p/12682517#M2017079</link>
      <description>&lt;P&gt;Good day&lt;BR /&gt;&lt;BR /&gt;I am wondering if anyone has experienced any issues with mapping a String[] Data type&lt;BR /&gt;I am currently using PostgreSQL with Odata V4 Olingo and JPA and Hibernate&lt;BR /&gt;This is what entity looks like an how I have done the mapping:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;@Entity&lt;BR /&gt;@Table(name = "ide")&lt;BR /&gt;@TypeDefs({&lt;BR /&gt;        @TypeDef(name = "string-array",&lt;BR /&gt;               typeClass = StringArrayType.class&lt;BR /&gt;        )&lt;BR /&gt;})&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;PRE&gt;&lt;CODE&gt;@Type(type = "string-array")&lt;BR /&gt;@Column(name = "RN", columnDefinition = "text[]")&lt;BR /&gt;private String[] rn;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;BR /&gt;this is the response that I get:&lt;/P&gt;
  &lt;P&gt; &lt;BR /&gt;{"error": {"code": null,"message": "com.sap.olingo.jpa.metadata.core.edm.mapper.exception.ODataJPAModelException: Type '[Ljava.lang.String;' of attribute 'rn' is not supported. Mapping not possible. If '[Ljava.lang.String;' is an enumeration, check if related package is provided."}}&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 18:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/odata-v4-string-mapping/m-p/12682517#M2017079</guid>
      <dc:creator>former_member1077671</dc:creator>
      <dc:date>2022-11-29T18:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Odata V4 String[] mapping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/odata-v4-string-mapping/m-p/12682518#M2017080</link>
      <description>&lt;P&gt;Thank you for visiting SAP Community to get answers to your questions.&lt;/P&gt;&lt;P&gt;As you're looking to get most out of your community membership, please consider include a profile picture to increase user engagement &amp;amp; additional resources to your reference that can really benefit you:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Profile &lt;A href="https://developers.sap.com/tutorials/community-profile.html"&gt;https://developers.sap.com/tutorials/community-profile.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Tips for Questions: &lt;A href="https://community.sap.com/resources/questions-and-answers"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Consider to take our Q&amp;amp;A tutorial at: &lt;A href="https://developers.sap.com/tutorials/community-qa.html" target="_blank"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I hope you find this advice useful, and we're happy to have you as part of SAP Community!&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2022 18:44:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/odata-v4-string-mapping/m-p/12682518#M2017080</guid>
      <dc:creator>AlexGourdet</dc:creator>
      <dc:date>2022-11-29T18:44:34Z</dc:date>
    </item>
  </channel>
</rss>

