<?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>Database column names mismatch with CDT field names</title><link>https://community.appian.com/discussions/f/data/12679/database-column-names-mismatch-with-cdt-field-names</link><description>I have a CDT with field names having underscore in it (Eg. &amp;quot;first_name&amp;quot;). But when I am trying to create a table, the underscores are not coming in column names of database table. I need exactly the same names(with underscore). Is there any possible way</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Database column names mismatch with CDT field names</title><link>https://community.appian.com/thread/56829?ContentTypeID=1</link><pubDate>Tue, 19 Jun 2018 05:55:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a7738fbc-87fb-416a-a639-2c0d135b7934</guid><dc:creator>Sudipta Biswas</dc:creator><description>Thank you all for helping me out. :)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Database column names mismatch with CDT field names</title><link>https://community.appian.com/thread/56826?ContentTypeID=1</link><pubDate>Tue, 19 Jun 2018 05:42:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8d3a4cba-2c6e-4a08-9427-ef426f53c5b7</guid><dc:creator>Abhay Giri</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is default, whenever we create tables directly from the CDT without editing the CDT xsd. It removes the underscore(_) and always in lower case column names.&lt;/p&gt;
&lt;p&gt;If you want the exact same name then after creating the CDT, download the CDT xsd and edit it as Adtiya has suggested :&lt;/p&gt;
&lt;p&gt;&amp;lt;xsd:element name=&amp;quot;First_Name&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:string&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;xsd:annotation&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#000000;"&gt;&amp;nbsp; &amp;nbsp;&lt;span style="background-color:#ffcc00;"&gt; &amp;nbsp;&amp;lt;xsd:appinfo source=&amp;quot;appian.jpa&amp;quot;&amp;gt;@Column(Name=&amp;quot;First_Name&amp;quot;,length=10)&amp;lt;/xsd:appinfo&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/xsd:annotation&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/xsd:element&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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: Database column names mismatch with CDT field names</title><link>https://community.appian.com/thread/56786?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2018 11:32:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c94d753a-cf49-4158-b467-3c47014a1b9b</guid><dc:creator>amitm9</dc:creator><description>Hi Sudipta,&lt;br /&gt;
Download the XSD of that CDT and edit that as below for specific element.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;xsd:element name=&amp;quot;first_name&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;@Column(name=&amp;quot;first_name&amp;quot;, length=100)&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;br /&gt;
&lt;br /&gt;
Reason why we use XSD upload for CDT creation, we can modify constraints and properties as we need. Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Database column names mismatch with CDT field names</title><link>https://community.appian.com/thread/56785?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2018 11:23:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2b37e705-0522-4737-b9cf-24cb86a9d3be</guid><dc:creator>ravalik</dc:creator><description>Hi sudiptab,&lt;br /&gt;
&lt;br /&gt;
The names of CDT fields must match the column names in DB.I suggest you to create column names as exactly as CDT names through XSD .Upload the XSD and then verify the data store.And also make sure @ column is properly defined for all the fields .&lt;br /&gt;
&lt;br /&gt;
It is very obvious in the documentation:).If Possible have a glance on it. Here is the link.&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/18.2/Mapping_CDTs_to_Pre-defined_Database_Tables.html"&gt;docs.appian.com/.../Mapping_CDTs_to_Pre-defined_Database_Tables.html&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
ravalik&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Database column names mismatch with CDT field names</title><link>https://community.appian.com/thread/56783?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2018 10:56:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:70fe4454-7e38-43c4-a420-a7ad0d8f2257</guid><dc:creator>Shiva Valusa</dc:creator><description>Hi sudiptab,&lt;br /&gt;
&lt;br /&gt;
You can download the XSD and map the columns as per your requirement.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/18.2/Mapping_CDTs_to_Pre-defined_Database_Tables.html"&gt;docs.appian.com/.../Mapping_CDTs_to_Pre-defined_Database_Tables.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Database column names mismatch with CDT field names</title><link>https://community.appian.com/thread/56659?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 13:13:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:19400dc7-c15b-422c-82c0-583b64c0575a</guid><dc:creator>krishnau3863</dc:creator><description>Hi sudiptab,&lt;br /&gt;
&lt;br /&gt;
              As aditya said, you should change the field name in XSD with respective  @Column(length=255, name=&amp;quot;example_test&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
for better reference follow the below link&lt;br /&gt;
&lt;a href="https://docs.appian.com/suite/help/18.2/Supported_XSD_Elements_and_JPA_Annotations.html"&gt;docs.appian.com/.../Supported_XSD_Elements_and_JPA_Annotations.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Database column names mismatch with CDT field names</title><link>https://community.appian.com/thread/56657?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 12:53:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2fb49010-00d8-450b-a8f7-d98d0a206588</guid><dc:creator>Aditya</dc:creator><description>&lt;p&gt;are you using xsd to create your cdt?&lt;/p&gt;
&lt;p&gt;If not, use a xsd and configure your table column name there. An example would be :&lt;/p&gt;
&lt;p&gt;&amp;lt;xsd:element name=&amp;quot;first_name&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;@Column(length=255, name=&amp;quot;first_name&amp;quot;)&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;The highlighted part indicates the table column name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>