<?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>XSDs annotations getting lost during creating/updating a CDT</title><link>https://community.appian.com/discussions/f/general/8955/xsds-annotations-getting-lost-during-creating-updating-a-cdt</link><description>Heya all, I just created some new CDTs via importing some XSDs and updated another couple of existing CDTs via XSD-uploads. In each case I only added one annotation to index a field. Here is one example: Before: &amp;lt;xsd:element name=&amp;quot;leadId&amp;quot; nillable=&amp;quot;true</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: XSDs annotations getting lost during creating/updating a CDT</title><link>https://community.appian.com/thread/39926?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2016 14:16:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1b8c5247-05b9-42a3-ada1-ba855cbb6d39</guid><dc:creator>chandu</dc:creator><description>Hi sandroo, I too tried that, it seems @table annotation doesn&amp;#39;t have Indexes attribute that resulted me giving the same error. I clearly see in the URL&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/help/16.3/Custom_Data_Types_from_XSD.html#Using_JPA_to_Map_to_an_RDBMS"&gt;forum.appian.com/.../Custom_Data_Types_from_XSD.html&lt;/a&gt;&lt;br /&gt;@Column (with additional attributes: uniqueKey and index).&lt;br /&gt;So Index attribute should work for @column annotation. I can&amp;#39;t able figure out why its not working for my scenario also. &lt;br /&gt;&lt;br /&gt;Will it not be possible to create Index from the DB side?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XSDs annotations getting lost during creating/updating a CDT</title><link>https://community.appian.com/thread/39923?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2016 13:12:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:14478dad-7c7c-4a9a-9930-a1c243e22e44</guid><dc:creator>Sandro Oberdorfer</dc:creator><description>Hey @aloks176, I quite simply want to optimize my database queries. The datamodel has a couple of smaller CDTs and running all those queries without indexing hurts performance. Plus I wanted a solution that is ideally automatically deployed with the application instead of having to do that extra.&lt;br /&gt;&lt;br /&gt;Thanks for all your help so far guys!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XSDs annotations getting lost during creating/updating a CDT</title><link>https://community.appian.com/thread/39918?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2016 10:04:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7c41cc15-f858-453c-a754-029d2e2ab4af</guid><dc:creator>aloks0189</dc:creator><description>As per my Knowledge, there are only four Elements of @Table Annotation, those are &lt;br /&gt;&lt;br /&gt;catalog, name, schema, uniqueConstraints&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XSDs annotations getting lost during creating/updating a CDT</title><link>https://community.appian.com/thread/39916?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2016 10:02:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:16c5cb3e-d54f-4675-a1d7-0723f0b605fd</guid><dc:creator>aloks0189</dc:creator><description>@sandroo i don&amp;#39;t think, there is any Element named as indexes for @Table Annotation, that might be causing you the issue, if you can explain your requirement, then only we can come to some Resolution for your requirement&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XSDs annotations getting lost during creating/updating a CDT</title><link>https://community.appian.com/thread/39892?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2016 19:08:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0d58e18e-a856-44a8-91ae-fc14c698b617</guid><dc:creator>Sandro Oberdorfer</dc:creator><description>Thanks for your answers guys!&lt;br /&gt;I tried the idea of @chandrasekharg, like this:&lt;br /&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;br /&gt;        @Table(indexes={&lt;br /&gt;            @Index(name=&amp;quot;test_index&amp;quot;, columnList=&amp;quot;leadId&amp;quot;)&lt;br /&gt;          }&lt;br /&gt;        )&lt;br /&gt;      &amp;lt;/xsd:appinfo&amp;gt;&lt;br /&gt;    &amp;lt;/xsd:annotation&amp;gt;&lt;br /&gt;&lt;br /&gt;The import of this modfied XSD resulted in the following error:&lt;br /&gt;&lt;br /&gt;A type mapping annotation is invalid: No efeature indexes for eclass Table (APNX-2-4055-000)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XSDs annotations getting lost during creating/updating a CDT</title><link>https://community.appian.com/thread/39870?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2016 08:29:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f499a319-5c90-4a56-ad9f-76823e03635c</guid><dc:creator>Krishna Chaitanya</dc:creator><description>hi @ sandroo&lt;br /&gt; &amp;lt;xsd:element name=&amp;quot;leadId&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:int&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;xsd:annotation&amp;gt;&lt;br /&gt;          &amp;lt;xsd:appinfo source=&amp;quot;appian.jpa&amp;quot;&amp;gt;&lt;br /&gt;            @Column(name=&amp;quot;leadId&amp;quot;,columnDefinition=&amp;quot;INT(3)&amp;quot;)&lt;br /&gt;          &amp;lt;/xsd:appinfo&amp;gt;&lt;br /&gt;        &amp;lt;/xsd:annotation&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;/xsd:element&amp;gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XSDs annotations getting lost during creating/updating a CDT</title><link>https://community.appian.com/thread/39857?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2016 03:56:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cd541ea6-71e6-4b99-b7e3-c964a782e19c</guid><dc:creator>aloks0189</dc:creator><description>However @Index Annotation is supported in JPA 2.1, but I didn&amp;#39;t find @Index Annotation in Appian documentation as mentioned by @Chaitanya above, so try to explain your requirement so that Appian practitioner can help you on this&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XSDs annotations getting lost during creating/updating a CDT</title><link>https://community.appian.com/thread/39856?ContentTypeID=1</link><pubDate>Thu, 01 Dec 2016 03:47:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:27bd17b1-8196-45b2-a145-480110478a2a</guid><dc:creator>aloks0189</dc:creator><description>@sandroo as per my understanding Appian do not have support for @Index Annotation, so after uploading it might be getting disappeared, if I am not wrong while uploading your Annotation based xsd file, you might have got some warnings also. If you can say your requirement so that we can suggest you the suitable Annotation for your requirement&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XSDs annotations getting lost during creating/updating a CDT</title><link>https://community.appian.com/thread/39843?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2016 18:09:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c3988390-fbaa-4011-9e62-f2175c2d41b3</guid><dc:creator>chandu</dc:creator><description>I haven&amp;#39;t tried but its worth trying, Could you Please check the below syntax for @table annotation.&lt;br /&gt;@Table(name=&amp;quot;&amp;lt;table Name&amp;gt;&amp;quot;, &lt;br /&gt;    indexes = {&lt;br /&gt;       @Index(name = &amp;quot;Index Name&amp;quot;, columnList = &amp;quot;Column Name&amp;quot;),&lt;br /&gt;       @Index(name = &amp;quot;Index Name&amp;quot;, columnList = &amp;quot;Column Name&amp;quot;),&lt;br /&gt;        }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   )&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XSDs annotations getting lost during creating/updating a CDT</title><link>https://community.appian.com/thread/39841?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2016 17:02:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:09815ef4-b0e6-4a67-a905-cf5bc595d19a</guid><dc:creator>Sandro Oberdorfer</dc:creator><description>Thank you. So I guess I have to use the @Column annotation, but do you know how it should look like if I want to use the additional attribute index like it says there?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XSDs annotations getting lost during creating/updating a CDT</title><link>https://community.appian.com/thread/39839?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2016 16:47:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c50eb7af-7c3e-435a-bb18-10c1dec122e9</guid><dc:creator>Krishna Chaitanya</dc:creator><description>hi @ sandroo&lt;br /&gt;have a look at the below link&lt;br /&gt; &lt;br /&gt;&lt;a href="https://forum.appian.com/suite/help/16.3/Custom_Data_Types_from_XSD.html#using-jpa-to-map-to-an-rdbms"&gt;forum.appian.com/.../Custom_Data_Types_from_XSD.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: XSDs annotations getting lost during creating/updating a CDT</title><link>https://community.appian.com/thread/39833?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2016 12:59:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e5d93afd-b241-4b21-9aa0-10dd9c0babf0</guid><dc:creator>Sandro Oberdorfer</dc:creator><description>... desired outcome but the information to WHY the index is there got completely lost, which is less than ideal of somebody ever wants to understand what I did.&lt;br /&gt;&lt;br /&gt;Is there a way to not lose the XSD annotations in during this process?&lt;br /&gt;Thank you for your time!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>