How to properly include a CDT from a different namespace

Below is a sample CRT structure. What I have is an old CDT which is in an old namespace, and I am creating a new CDT in a new namespace, I would like to use the old cdt object from the old namespace in my new cdt but it is not working, please advise.

<xsd:schema
targetNamespace="new_CDT_Schema"
xmlns:types1="new_CDT_Schema" xmlns:types2="Old_CDT_Schema" xmlns:xsd="www.w3.org/.../XMLSchema">
<xsd:include schemaLocation="{Old_CDT_Schema}Old_CDT.xsd"/>
<xsd:complexType name="New_CDT">
<xsd:sequence>
<xsd:element name="ID" type="xsd:int">
<xsd:annotation>
<xsd:appinfo source="appian.jpa">
                                                  @Column(nullable=false)
                                                  @Id
                                                  @GeneratedValue
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
           <xsd:element name="Sample" type="types2:Old_CDT">
<xsd:annotation>
                              <xsd:appinfo source="appian.jpa">
                                        @Column(nul...

OriginalPostID-233415

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data