Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi column relationships - PK is composite key #700

Open
aisbergde opened this issue May 19, 2020 · 3 comments
Open

multi column relationships - PK is composite key #700

aisbergde opened this issue May 19, 2020 · 3 comments

Comments

@aisbergde
Copy link
Contributor

Expected Behavior

it should be possible to show multi colum relationships as one relationship

example: if the relationship is defined as
Tab1.A = Tab2.A
and Tab1.B = Tab2.B
and Tab1.C = Tab2.C

  • it should be possible to define this kind of relationship via XML
  • the relationship should be shown as one relationship
  • but it should still be possible to identify the columns

Current Behavior

in the example currently 3 relationships will be listed and shown
it is very hard "to read" these diagrams

Possible Solution

extend SchemaMeta to not only define FK per column but enable to define relationships independently from column definitions.

it should be possible to link more then one column.

read existing multi column relationships from database and keep them together

@npetzall
Copy link
Member

Just to check are we discussing composite keys. Like PK is (column a, column b)

@aisbergde
Copy link
Contributor Author

yes, exactly, I should rename the issue

@aisbergde aisbergde changed the title multi column relationships multi column relationships - PK is composite key May 19, 2020
@aisbergde
Copy link
Contributor Author

Here an example.
3 column composite key in each table or view

Anmerkung 2020-05-19 153224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants