<?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>Question Re: Recursive CDS data type in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/recursive-cds-data-type/qaa-p/12402539#M4642014</link>
    <description>&lt;P&gt;Have you tried to follow the example in:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/SAP-samples/cloud-cap-samples/blob/master/bookshop/db/schema.cds#L27" target="_blank"&gt;schema.cds#L27&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 May 2021 12:50:41 GMT</pubDate>
    <dc:creator>gregorw</dc:creator>
    <dc:date>2021-05-28T12:50:41Z</dc:date>
    <item>
      <title>Recursive CDS data type</title>
      <link>https://community.sap.com/t5/technology-q-a/recursive-cds-data-type/qaq-p/12402538</link>
      <description>&lt;P&gt;Dear colleagues,&lt;/P&gt;
  &lt;P&gt;I'm trying to create a recursive data type using SAP CDS version 5.0.6. So far I experimented with the following:&lt;/P&gt;
  &lt;P&gt;type Node { value: String; children: many Node; } &lt;BR /&gt;&lt;/P&gt;
  &lt;P&gt;This yields an error: 'Illegal circular reference'. Do you know how can this use case modelled in CDS?&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 12:36:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/recursive-cds-data-type/qaq-p/12402538</guid>
      <dc:creator>former_member748892</dc:creator>
      <dc:date>2021-05-28T12:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive CDS data type</title>
      <link>https://community.sap.com/t5/technology-q-a/recursive-cds-data-type/qaa-p/12402539#M4642014</link>
      <description>&lt;P&gt;Have you tried to follow the example in:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/SAP-samples/cloud-cap-samples/blob/master/bookshop/db/schema.cds#L27" target="_blank"&gt;schema.cds#L27&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 12:50:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/recursive-cds-data-type/qaa-p/12402539#M4642014</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2021-05-28T12:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive CDS data type</title>
      <link>https://community.sap.com/t5/technology-q-a/recursive-cds-data-type/qaa-p/12402540#M4642015</link>
      <description>&lt;P&gt;Recursive type are indeed not supported in CDS.  Before we would invest in this direction, we would have to check whether they would be supported in consumers of CDS models.&lt;/P&gt;&lt;P&gt;In SQL, it would be fine in combination with MANY (like your example), because then it would be mapped to a CLOB...  In OData and OData consumers...&lt;/P&gt;&lt;P&gt;In CDS, you have recursive data structures via Associations/compositions&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;entity Node {
  key id: UUID;
  value: String;
  children: Composition of Node;
}&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;BR /&gt;Christoph&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 15:38:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/recursive-cds-data-type/qaa-p/12402540#M4642015</guid>
      <dc:creator>former_member628556</dc:creator>
      <dc:date>2021-05-28T15:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Recursive CDS data type</title>
      <link>https://community.sap.com/t5/technology-q-a/recursive-cds-data-type/qaa-p/12402541#M4642016</link>
      <description>&lt;P&gt;It did the trick, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 17:09:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/recursive-cds-data-type/qaa-p/12402541#M4642016</guid>
      <dc:creator>former_member748892</dc:creator>
      <dc:date>2021-05-28T17:09:47Z</dc:date>
    </item>
  </channel>
</rss>

