HI
How can we create a CDT for a table which has type TEXT for one of the column. I created a below as an example.
When I tried to import the above table to a CDT using create from database table or view, I see the below error. Is there any way we can achieve this scenario?
Thanks in advance
FYI
Initially tsetField3 is of type varchar and later I have changed it to TEXT in DB.
Discussion posts and replies are publicly visible
You can use TEXT columns, you need to manually update the xsd to use @Column(columnDefinition = "TEXT") for the desired column.
Thank you Josh,
Here is what I see.
here is the CDT:
I see the above notification but I was successfully able to verify the DS.
CDT: <xsd:schema xmlns:xsd="www.w3.org/.../XMLSchema" xmlns:tns="urn:com:appian:types:test" targetNamespace="urn:com:appian:types:test"> <xsd:complexType name="TEST_testDataType"> <xsd:annotation> <xsd:documentation><![CDATA[This is a test Data type for testing varchar to text]]></xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="id" nillable="true" type="xsd:int"> <xsd:annotation> <xsd:appinfo source="appian.jpa">@Id @GeneratedValue</xsd:appinfo> </xsd:annotation> </xsd:element> <xsd:element name="testField1" nillable="true" type="xsd:string"> <xsd:annotation> <xsd:appinfo source="appian.jpa">@Column(length=5000)</xsd:appinfo> </xsd:annotation> </xsd:element> <xsd:element name="testField2" nillable="true" type="xsd:string"> <xsd:annotation> <xsd:appinfo source="appian.jpa">@Column(length=4000)</xsd:appinfo> </xsd:annotation> </xsd:element> <xsd:element name="testField3" nillable="true" type="xsd:string" > <xsd:annotation> <xsd:appinfo source="appian.jpa">@Column(columnDefinition = "TEXT")</xsd:appinfo> </xsd:annotation> </xsd:element> </xsd:sequence> </xsd:complexType></xsd:schema>