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
2 replies
Subscribers
7 subscribers
Views
2836 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
If we have a combination of two columns as primary key then can we have auto gen
gurdeeps
over 8 years ago
If we have a combination of two columns as primary key then can we have auto generated values for the any of the column in the DB Table?
OriginalPostID-217669
OriginalPostID-217669
Discussion posts and replies are publicly visible
0
ChristineH
Certified Lead Developer
over 8 years ago
I am not sure I understand your question.
You can find info about composite keys here:
forum.appian.com/.../Database_Schema_Best_Practices.html
Which can be separate from having a sequence on a column (@GeneratedValue in your CDT).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
raghunandanj3904
Certified Senior Developer
over 8 years ago
The queryEntity function can read data from tables with composite keys, however the totalCount and identifiers fields of the returned data subset will be incorrect unless a separate unique column in the table is mapped to a field in the CDT that is annotated with the @Id annotation.
From the above suggestion, having a separate column with unique values would be preferred and the generated values can be used for the composite i suppose.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel