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
4 replies
Subscribers
5 subscribers
Views
3137 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
Team, I have a database view already created. I am now trying to crea
Manikandan Ganapathy
over 8 years ago
Team,
I have a database view already created. I am now trying to create a data type & data store in appian designer so that i can query the database using a!queryentity().
But it doesn't allow me stating that a_id is missing as it is the primary key. How i need to add this in the XSD file so that no new tables will be created?
OriginalPostID-162993
OriginalPostID-162993
Discussion posts and replies are publicly visible
Parents
0
senthilar
over 8 years ago
This is what we do to overcome this issue:
1) Add rownum as a column in the view (eg CREATE VIEW <viewname> AS SELECT rownum ROW_ID, <other required columns>...)
2) In XSD, use @Table annotation to point to this View and designate the ROW_ID column with @Id annotation
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
senthilar
over 8 years ago
This is what we do to overcome this issue:
1) Add rownum as a column in the view (eg CREATE VIEW <viewname> AS SELECT rownum ROW_ID, <other required columns>...)
2) In XSD, use @Table annotation to point to this View and designate the ROW_ID column with @Id annotation
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data