Book a Demo

Author Topic: Linking tables  (Read 5233 times)

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Linking tables
« on: May 13, 2014, 07:43:40 am »
I have just downloaded 11, having not done any meaningful modeling in EA for quite some time.  I am building a data model and have two tables defined, one of which contains a column which is the primary key of the other.  I can't remember or find how I show this.  I can get an association between them easily enough, but there is no indication of the columns which participate in this association.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Linking tables
« Reply #1 on: May 13, 2014, 08:09:18 am »
Yes, I thought that you would specify from the Association properties, e.g. Source and Target roles, but it never worked well for me.
Or perhaps under the entity properties, e.g. Related Links.

In fact you ...

Right mouse click on the association connector and choose Foreign Keys (EAUI)

Make sure the database is defined for each table, and tables have the appropriate columns.
« Last Edit: May 14, 2014, 06:19:54 am by skiwi »
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Re: Linking tables
« Reply #2 on: May 14, 2014, 12:25:32 am »
Wonderful, thanks!

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Re: Linking tables
« Reply #3 on: May 15, 2014, 03:02:05 am »
Which I create one of these foreign key relationships, I get 6 labels - 2 for cardinality, one for FK_Table1_Table2, one for PK_Table2, one for column = column that makes the join, and FK associated with that.  While clear, this makes for very busy diagrams, especially as the FK_Table1_Table2 labels can be quite long in my case.    Is there any way to control what shows up in a systematic way without hand deleting and/or editing each instance?  Really, the cardinality and the column = column labels say it all.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Re: Linking tables
« Reply #5 on: May 15, 2014, 06:57:17 am »
I see ... oh well.