Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
12 replies
Subscribers
9 subscribers
Views
5137 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
XSDs annotations getting lost during creating/updating a CDT
Sandro Oberdorfer
A Score Level 2
over 8 years ago
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:
<xsd:element name="leadId" nillable="true" type="xsd:int" />
After my changes:
<xsd:element name="leadId" nillable="true" type="xsd:int">
<xsd:annotation>
<xsd:appinfo source="appian.jpa">@Index(name="LMW_ProcessData_leadId")</xsd:appinfo>
</xsd:annotation>
</xsd:element>
So after I made these changes and created/updated I took a look into the XSDs to double check via downloading the CDTs XSD from Appian, but my annotation was completely gone. It looked like this again:
<xsd:element name="leadId" nillable="true" type="xsd:int" />
Afterwards I looked into the database and behold: The index was actually there. So basically I got my...
OriginalPostID-250036
Discussion posts and replies are publicly visible
Parents
0
Sandro Oberdorfer
A Score Level 2
over 8 years ago
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?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Sandro Oberdorfer
A Score Level 2
over 8 years ago
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?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data