<?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>CDT persistence - JoinColumn with referencedColumnName</title><link>https://community.appian.com/discussions/f/data/13206/cdt-persistence---joincolumn-with-referencedcolumnname</link><description>Hi, 
 I&amp;#39;ve created some CDTs with annotations for database table creation and persistence and run into an issue with naming a column in a join table. 
 Here is a code snippet from my CDT definition: 
 &amp;lt;xsd:element maxOccurs=&amp;quot;unbounded&amp;quot; minOccurs=&amp;quot;0&amp;quot; name</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: CDT persistence - JoinColumn with referencedColumnName</title><link>https://community.appian.com/thread/80348?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 13:17:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08584549-14d0-4360-8ddf-d7f5b5a1576c</guid><dc:creator>Peter Lewis</dc:creator><description>&lt;p&gt;This is a pretty old post - if you&amp;#39;re having an issue setting up your data structure, I&amp;#39;d suggest creating a new post with context for what you&amp;#39;re trying to do and what isn&amp;#39;t working.&lt;/p&gt;
&lt;p&gt;Also just a quick note - usually if you have a flat data structure you don&amp;#39;t even use annotations in your CDT. Instead, I&amp;#39;d recommend setting up the table structure that you want directly in the database and then create your CDTs from the already created table.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT persistence - JoinColumn with referencedColumnName</title><link>https://community.appian.com/thread/80337?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 21:51:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b0d4cd7-b3f3-41fb-b824-ade37b5dac53</guid><dc:creator>nauman</dc:creator><description>&lt;p&gt;Doesn&amp;#39;t work!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT persistence - JoinColumn with referencedColumnName</title><link>https://community.appian.com/thread/80336?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 21:51:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1d3e5d7b-aba2-4242-8ae4-b24b3886c410</guid><dc:creator>nauman</dc:creator><description>&lt;p&gt;Not valid for flat relationship scenario!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT persistence - JoinColumn with referencedColumnName</title><link>https://community.appian.com/thread/59646?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 11:48:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d46452c4-6f54-4542-b336-6548b47e57f5</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Hi mikej117,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;&lt;strong&gt;&amp;nbsp;AFAIK&lt;/strong&gt; After defining the relationship, need to click&amp;nbsp;the Foreign Key icon for that field to further configure the relationship.(need to tick the checkbox &lt;strong&gt;&amp;quot;I know the name of the columns this field should use in the data base&amp;quot;&lt;/strong&gt;).Otherwise&amp;nbsp;a random column name will be created in Data Base.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:arial, helvetica, sans-serif;"&gt;Please refer the below link for more info.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/CDT_Relationships.html"&gt;https://docs.appian.com/suite/help/18.3/CDT_Relationships.html&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Siva Chimata&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/18.3/CDT_Relationships.html"&gt;docs.appian.com/.../CDT_Relationships.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT persistence - JoinColumn with referencedColumnName</title><link>https://community.appian.com/thread/59615?ContentTypeID=1</link><pubDate>Tue, 28 Aug 2018 04:59:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a0efffe2-d71a-4871-9e03-9d9d7c20ed4c</guid><dc:creator>benjamins</dc:creator><description>&lt;p&gt;Have you tried something like this?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;@JoinTable(name=&amp;quot;&lt;span id="fragment-1289_QuoteText"&gt;FSA_REQUESTED_SYSTEM_ROLE_JOIN&lt;/span&gt;&amp;quot;, joinColumns=@JoinColumn(name=&amp;quot;&lt;span id="fragment-1289_QuoteText"&gt;REQUESTED_SYSTEM_ID&lt;/span&gt;&amp;quot;), inverseJoinColumns=@JoinColumn(name=&amp;quot;&lt;span id="fragment-1289_QuoteText"&gt;ROLE_ID&lt;/span&gt;&amp;quot;))&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>