Are you sure you did select "Primary key" not "Foreign Key"? If yes, that is bug. I quickly gave it a try on my Linux Designer and I did not see the same behavior as you are seeing.
Please log Teiid Designer JIRA for it.
As per the best practice, you right click on the View and "New Child" -> Primary Key. Then give it a name, then in properties box you select the column(s) that make up the primary key. Same for FK or index.
Yes, this occurred when trying to define primary keys.
I'll log a Teiid Designer JIRA.
Thanks and Best Regards,
Did you manage to work around this one? We are experiencing the same issue and we also like to define more than 1 entity per view model.
What version of the Designer? We will double check this? I do not know if Greg ever filed a JIRA on this.
The Teiid version is 8.3.4.Final. There is a workaround, though. You can open the View Model with the standard Eclipse XML Editor and set the columns for the primary key using UUID's. Maybe that is why Greg did not register the JIRA issue.
I wasn't able to repeat your scenario using the Diagram/Explorer for selection and the Properties View editor for selecting PK columns.
I was able to repeat something similar if I used the Model Editor's "Table Editor" tab to edit/select the PK Columns.
Which scenario did you use?