<?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>How would I go about implementing a @MappedSuperclass on a CDT?</title><link>https://community.appian.com/discussions/f/general/8201/how-would-i-go-about-implementing-a-mappedsuperclass-on-a-cdt</link><description>How would I go about implementing a @MappedSuperclass on a CDT? The objective is to enable &amp;quot;inheritance&amp;quot; at the relational database level. 
 OriginalPostID-228460 
 OriginalPostID-228460</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How would I go about implementing a @MappedSuperclass on a CDT?</title><link>https://community.appian.com/thread/45577?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 22:32:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e55361c3-5cba-4914-a5c8-5769d8236a90</guid><dc:creator>josep</dc:creator><description>&lt;p&gt;Hi Philips, &lt;br /&gt;I hope this still helps ... someone, &lt;br /&gt; &lt;br /&gt;As Harshav said, you can see it is documented (Supported)&lt;br /&gt; &lt;a href="https://docs.appian.com/suite/help/17.1/Supported_XSD_Elements_and_JPA_Annotations.html#supported-jpa-annotations"&gt;docs.appian.com/.../Supported_XSD_Elements_and_JPA_Annotations.html&lt;/a&gt;&lt;br /&gt; &lt;br /&gt;Maybe the question is how to do it. &lt;br /&gt; &lt;br /&gt;In Java style, you would have 2 classes&lt;br /&gt;1) the &amp;quot;Parent&amp;quot; with the annotation @MappedSuperclass (no table exists for this class)&lt;br /&gt;2) the Child which extends this class &lt;br /&gt; &lt;br /&gt;The same needs to happen in XML.&lt;br /&gt;So, you can start generating the CDTs from scratch and later you download the XSD and &amp;quot;create a new version&amp;quot; with the following modifications&lt;br /&gt; &lt;br /&gt;1) In the parent, you Annotate the CDT&lt;br /&gt;------------------------------&lt;br /&gt;Reference: &lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/17.1/Supported_XSD_Elements_and_JPA_Annotations.html#supported-jpa-annotations"&gt;https://docs.appian.com/suite/help/17.1/Supported_XSD_Elements_and_JPA_Annotations.html#supported-jpa-annotations&lt;/a&gt;&amp;nbsp;&lt;br /&gt;------------------------------&lt;br /&gt;&amp;lt;xsd:complexType name=&amp;quot;APP_Parent&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;@MappedSuperclass&amp;lt;/xsd:appinfo&amp;gt;&lt;br /&gt;&amp;lt;xsd:documentation&amp;gt;&amp;lt;![CDATA[Parent]]&amp;gt;&amp;lt;/xsd:documentation&amp;gt;&lt;br /&gt;...&lt;br /&gt;------------------&lt;br /&gt; &lt;br /&gt;2) In the Child, you have to extend the parent &lt;br /&gt;------------------------------&lt;br /&gt;Reference: &lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/17.1/Supported_XSD_Elements_and_JPA_Annotations.html#supported-elements"&gt;https://docs.appian.com/suite/help/17.1/Supported_XSD_Elements_and_JPA_Annotations.html#supported-elements&lt;/a&gt;&amp;nbsp;&lt;br /&gt;------------------------------&lt;br /&gt;&amp;lt;xsd:schema ...&amp;gt;&lt;br /&gt;&amp;lt;xsd:include schemaLocation=&amp;quot;%7Burn:com:appian:types:app%7DAPP_Parent.xsd&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;xsd:complexType name=&amp;quot;APP_Child&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;xsd:annotation&amp;gt;&lt;br /&gt;&amp;lt;xsd:documentation&amp;gt;&amp;lt;![CDATA[Child]]&amp;gt;&amp;lt;/xsd:documentation&amp;gt;&lt;br /&gt;&amp;lt;/xsd:annotation&amp;gt;&lt;br /&gt;&amp;lt;xsd:complexContent&amp;gt;&lt;br /&gt;&amp;lt;xsd:extension base=&amp;quot;tns:APP_Parent&amp;quot;&amp;gt;&lt;br /&gt;....&lt;br /&gt;--------------------&lt;br /&gt; &lt;br /&gt;Notes: &lt;br /&gt;1- As you can notice the include statement is the reference for the parent but escaped&amp;quot;{urn:com:appian:types:app}APP_Parent.xsd&amp;quot;&lt;br /&gt;2- When import it as a new version you will get an info, it is OK, just informative. &lt;br /&gt; &lt;br /&gt;If anyone have question please ask &lt;br /&gt; &lt;br /&gt;Best Regards&lt;br /&gt;Jose Perez&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How would I go about implementing a @MappedSuperclass on a CDT?</title><link>https://community.appian.com/thread/34387?ContentTypeID=1</link><pubDate>Wed, 10 Aug 2016 13:04:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:408054f9-4ba6-46f4-93f7-7ddfd28efbd9</guid><dc:creator>harshav</dc:creator><description>Not sure you referred to this link , if you have already referred please ignore&lt;br /&gt;&lt;a href="https://forum.appian.com/suite/help/16.2/Custom_Data_Types_from_XSD.html"&gt;forum.appian.com/.../Custom_Data_Types_from_XSD.html&lt;/a&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>