Book a Demo

Author Topic: Association Name not displayed if Foreign Key  (Read 3942 times)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Association Name not displayed if Foreign Key
« on: January 07, 2009, 06:23:19 pm »
If you have an edge between two tables and there is a Foreign Key Constraint, the Edge Name is NOT displayed.  This is because Foreign Key constraint field mapping is displayed in that label (Middle Top).  If no Foreign Key is yet defined, the Edge Name is displayed.

This is inconsistent with other uses.  The Foreign Key constraint could be displayed in the Middle Bottom label and that would allow the Edge Name to be consistently displayed in the Middle Top label.


NOTE: if you reverse engineer a Foreign key relationship, the Middle bottom label is blank.  If you create one, it contains the string: «FK»  - but that's another story (but should still be fixed).

There's also a synchronization problem with the on-screen display when you add the Foreign Key constraint and when you refresh the diagram - but that's yet another story (but should still be fixed).

Next, when you delete the Foreign Key constraint it will (at no charge) delete the Edge Name (even though the displayed label (Foreign Key constraint) has NO relationship to the Edge Name).  This one has to be FIXED!

Nonetheless, if a name IS specified, it should be displayed.

A side effect of this is that when you suppress line segments, you DON'T get the edge name at either end of the suppressed line segment (as you do with other renderings).  You get the Foreign Key Constraint which may not be unique enough (and which you can't change).  Which is how I discovered the 5 bugs above in the first place...

Reported,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Association Name not displayed if Foreign Key
« Reply #1 on: January 08, 2009, 02:28:12 am »
There have been several oddities relating to how connections and labels thereof are displayed in data diagrams. I've reported some in the past, with limited effect.

For an entertaining experience, try setting up a data model using UML notation. Include some foreign keys. Then use the Diagram Properties dialog to change the connector notation, view the diagram, then change the connector notation back. Try several combinations.
No, you can't have it!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Association Name not displayed if Foreign Key
« Reply #2 on: January 08, 2009, 01:00:25 pm »
Quote
There have been several oddities relating to how connections and labels thereof are displayed in data diagrams. I've reported some in the past, with limited effect.

For an entertaining experience, try setting up a data model using UML notation. Include some foreign keys. Then use the Diagram Properties dialog to change the connector notation, view the diagram, then change the connector notation back. Try several combinations.
That's exactly how I diagnosed the bug!  The report started off as a different analysis.  But playing around as you suggest finally showed me where the issue was...

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!