How do we map a CDT to a database view??/ Any documentation related to vie

Certified Senior Developer
How do we map a CDT to a database view??/
Any documentation related to views & CDT is very helpful.
We tried creating a CDT with annotations but it creates a table in the DB. Is there any extra anootations / tags we need to take crae for views. We have created a view in the database in MS SQL....

OriginalPostID-76078

OriginalPostID-76078

  Discussion posts and replies are publicly visible

Parents
  • Here's an example of how you would use each of these:

    <xsd:complexType name="Test_Data_Type">
              <xsd:annotation>
    <xsd:appinfo source="appian.jpa">
    @Table(name="testdatatype")
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:sequence>
    <xsd:element name="tdtId" type="xsd:int" nillable="true" >
                        <xsd:annotation>
    <xsd:appinfo source="appian.jpa">
                                                                @Id
                                                                @GeneratedValue
                                                                @Column(name="test_datatype")
                                                      </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
Reply
  • Here's an example of how you would use each of these:

    <xsd:complexType name="Test_Data_Type">
              <xsd:annotation>
    <xsd:appinfo source="appian.jpa">
    @Table(name="testdatatype")
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:sequence>
    <xsd:element name="tdtId" type="xsd:int" nillable="true" >
                        <xsd:annotation>
    <xsd:appinfo source="appian.jpa">
                                                                @Id
                                                                @GeneratedValue
                                                                @Column(name="test_datatype")
                                                      </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
Children