<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Getting database data into nest CDT</title><link>https://community.appian.com/discussions/f/data/13256/getting-database-data-into-nest-cdt</link><description>Hi, 
 I&amp;#39;m looking for examples on getting database data into a CDT with child CDT (nested). For example there is an order and a customer table. Each order has only one customer, i.e. one-to-one relationship. 
 I was reading the doc Custom Data Type (CDT</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Getting database data into nest CDT</title><link>https://community.appian.com/thread/59857?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 12:30:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f181933a-128b-4f44-b018-636f25381008</guid><dc:creator>Abhay Giri</dc:creator><description>&lt;p&gt;Hi Jude,&lt;/p&gt;
&lt;p&gt;what you are not able to understand in the&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/18.3/CDT_Relationships.html"&gt;Custom Data Type (CDT) Relationships&lt;/a&gt;&amp;nbsp;? you need to create two CDT one will act as Parent (customer ) and other will as Child (order) . first create child CDT and then create Parent CDT and create one field in Parent CDT and set type as child CDT as suggested in the url. Now publish both CDT in data store.&lt;/p&gt;
&lt;p&gt;When you will access the data from Parent CDT ( table) then child table data will automatically will come, you don&amp;#39;t need to do anything from your side.&lt;/p&gt;
&lt;p&gt;You can find how data store work follow this link :&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/18.3/Data_Stores.html"&gt;https://docs.appian.com/suite/help/18.3/Data_Stores.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Let me know if you will face any issue.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Abhay&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting database data into nest CDT</title><link>https://community.appian.com/thread/59855?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 12:19:32 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a457ce98-ab45-4dd4-9875-427134c04e15</guid><dc:creator>Justin Watts</dc:creator><description>&lt;p&gt;You will need a relationship (i.e. a foreign key) between the two tables to take advantage of JPA annotations as they require that you specific a set of JOIN columns in order to associate them. The easiest way to do this is by starting with the guide at the bottom of the documentation you listed:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/18.2/CDT_Relationships.html#configuring-relationships"&gt;docs.appian.com/.../CDT_Relationships.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Say you want your Order (Parent) to reference Customer data (Child). Start by creating the Customer CDT and mapping to the database. Then while creating the Order CDT, you&amp;#39;ll create a field in the CDT of complex type Customer. Click the Key column that shows up and that&amp;#39;s where the &amp;quot;Configure Field Relationship&amp;quot; modal referenced in the docs appears&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/16/pastedimage1535717815981v2.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1535717815981v2.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/16/pastedimage1535717933086v3.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1535717933086v3.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And then I like to use the last check box to state my column name - this would be the column in Order to references the Customer&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/16/pastedimage1535717999071v4.png"&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/16/pastedimage1535717999071v4.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>