<?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 with extra column</title><link>https://community.appian.com/discussions/f/general/25279/cdt-with-extra-column</link><description>Hi everyone, 
 CDT with 6 columns and database with 5 columns, Can we map that CDT to database table without adding 6th column in database? 
 Thank you all in advance! 
 Regards, 
 Kiran Sajjan</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: CDT with extra column</title><link>https://community.appian.com/thread/98218?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 10:10:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7e434ea3-130e-4c58-8bf3-7c6a51f8712c</guid><dc:creator>aditya007</dc:creator><description>&lt;p&gt;&lt;strong&gt;Please refer below urls,&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="color:#333399;"&gt;&lt;a style="color:#333399;" href="/support/w/kb/659/kb-1404-queryentity-fails-when-an-xsd-has-a-field-marked-as-transient" rel="noopener noreferrer" target="_blank"&gt;https://community.appian.com/support/w/kb/659/kb-1404-queryentity-fails-when-an-xsd-has-a-field-marked-as-transient&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span style="color:#000080;"&gt;&lt;a style="color:#000080;" href="https://docs.appian.com/suite/help/21.4/Supported_XSD_Elements_and_JPA_Annotations.html"&gt;docs.appian.com/.../Supported_XSD_Elements_and_JPA_Annotations.html&lt;/a&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT with extra column</title><link>https://community.appian.com/thread/98211?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 10:01:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:66984089-68ad-4603-8024-d7aa144709f3</guid><dc:creator>Harshit Bumb (Appyzie)</dc:creator><description>&lt;p&gt;&lt;strong&gt;Yes. It is possible&lt;/strong&gt;.&amp;nbsp;&lt;br /&gt;If you add the&amp;nbsp;&lt;em&gt;&lt;strong&gt;@Transient&lt;/strong&gt;&lt;/em&gt; annotation, you&amp;#39;ll be able to achieve it.&amp;nbsp;&lt;br /&gt;See the sample below.&amp;nbsp;&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1658484131366v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Find more of such annotations here -&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/21.4/Supported_XSD_Elements_and_JPA_Annotations.html"&gt;docs.appian.com/.../Supported_XSD_Elements_and_JPA_Annotations.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT with extra column</title><link>https://community.appian.com/thread/98210?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 10:01:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b07a51ac-6808-45ba-88eb-16027f6e019f</guid><dc:creator>paragranjan02</dc:creator><description>&lt;p&gt;&lt;strong&gt;Hi Kiran&lt;/strong&gt;,&lt;/p&gt;
&lt;p&gt;You can follow the below example to add transient columns to CDT without having them added to the database.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;xsd:element name=&amp;quot;dummy&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:string&amp;quot;&amp;gt;&lt;br /&gt; &amp;lt;xsd:annotation&amp;gt;&lt;br /&gt; &amp;lt;xsd:appinfo source=&amp;quot;appian.jpa&amp;quot;&amp;gt;&lt;span style="background-color:#ffff00;"&gt;@Transient&lt;/span&gt;&amp;lt;/xsd:appinfo&amp;gt;&lt;br /&gt; &amp;lt;/xsd:annotation&amp;gt;&lt;br /&gt;&amp;lt;/xsd:element&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; While you fetch data from database using query entity, it will throw error. The workaround is to use selection parameter of&amp;nbsp;&lt;strong class="StrongText---richtext_strong"&gt;a!query.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong class="StrongText---richtext_strong"&gt;Below link explains how to retrieve data if a transient column is present.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong class="StrongText---richtext_strong"&gt;&lt;a href="/support/w/kb/659/kb-1404-queryentity-fails-when-an-xsd-has-a-field-marked-as-transient" rel="noopener noreferrer" target="_blank"&gt;https://community.appian.com/support/w/kb/659/kb-1404-queryentity-fails-when-an-xsd-has-a-field-marked-as-transient&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT with extra column</title><link>https://community.appian.com/thread/98207?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 08:54:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5391855e-234a-4856-85c6-54e993f86d87</guid><dc:creator>deepakg271869</dc:creator><description>&lt;p&gt;Please share the Usecase why you are looking for this. I think, while publish the Datastore, it will throw an error and if you click on automatic option then it will create a field in DB as well.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: CDT with extra column</title><link>https://community.appian.com/thread/98206?ContentTypeID=1</link><pubDate>Fri, 22 Jul 2022 08:31:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e3e2337d-38f6-4c7a-96b2-09fd7658d554</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;What do you want to achieve? If this table is represented as a record, you could have a custom record field.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>