Book a Demo

Author Topic: Creating multiple foreign key associations  (Read 10344 times)

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Creating multiple foreign key associations
« Reply #15 on: May 13, 2010, 07:59:33 am »
I have had a lot of problem in this area when doing some physical data modelling. In particular with multiple foreign keys.

See also
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1263179990
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1263306644
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1260782579
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

ScorpioTiger

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Creating multiple foreign key associations
« Reply #16 on: May 13, 2010, 09:24:42 pm »
Hi Folks,

Ok, I've done some more playing. I've just been able to successfully add two foreign key constraints. The secret was in ensuring that you don't accept the default name for the constraint. If you create one constraint and leave the default name, as soon as you create a second constraint, the name will be the same as the first one and they're treated as one and the same because they have the same name...and changing the name at that point doesn't help...changing the attributes used for the constraint on one changes the constraint on both.

There also seems to be an artifact left after you delete an association from the model. This prevents you from creating a constraint, deleting it, and then creating a constraint with the same name as the one you've just deleted.

Pretty crappy bugs..! And they shouldn't be difficult to fix.

Thanks for everyones input and I hope my experience helps in defining a work around.

Scorpio...


skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Creating multiple foreign key associations
« Reply #17 on: May 14, 2010, 06:44:50 am »
Good work. I hope you have formally reported the bugs, and we see them fixed.
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Creating multiple foreign key associations
« Reply #18 on: May 14, 2010, 10:24:31 am »
Quote
[size=18]...[/size]
Pretty crappy bugs..! And they shouldn't be difficult to fix.
[size=18]...[/size]
That's what I thought 6 years ago for some of the bugs I reported then...

They're STILL here!

Please submit Registered Bug Reports or Bug Reports and tell us the names,
leaving a note here to say you've done it.
We users can then vote for them using a Registered Bug Report or Bug Report with the same name[/color]
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

ScorpioTiger

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Creating multiple foreign key associations
« Reply #19 on: May 20, 2010, 12:56:05 am »
Quote
Good work. I hope you have formally reported the bugs, and we see them fixed.

Done.