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
3 replies
Subscribers
5 subscribers
Views
1637 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
I should create a one to many relation between to tables: Flow Table and Track T
patrickp
over 9 years ago
I should create a one to many relation between to tables: Flow Table and Track Table.
The first one, Flow, has a primary key which is made up of two columns cod_flow and cod_rec. There isn't any auto-increment id.
I would like to set 2 foreign keys, cod_flow and cod_rec, on the Track Table.
I have already tried to use some jpa annotations based on
@ManyToOne
@JoinColumns({
@JoinColumn(name="cod_flow", referencedColumnName="cod_flow"),
@JoinColumn(name="cod_rec", referencedColumnName="cod_rec")
})
but didn't work properly.
How could we configure these Primary Keys and Foreign keys into the CDTs?
Thanks in advance!
OriginalPostID-137431
OriginalPostID-137431
Discussion posts and replies are publicly visible
Parents
0
PhilB
A Score Level 1
over 9 years ago
I should add that you then can't write to that view using the CDT. Ultimately, Jacob is correct, Appian doesn't support composite keys.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
PhilB
A Score Level 1
over 9 years ago
I should add that you then can't write to that view using the CDT. Ultimately, Jacob is correct, Appian doesn't support composite keys.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data