How did you create the index? You need to create the index operation first, then select the column.
Sorry, not following here..
I can define the Foreign Key Constraint (on the Table, not the Relationship) and then assign the Columns.
I can separately define an Index, and then assign it the same Columns as the Foreign Key Constraint (although not necessarily in the same order). This is the Inversion Index (because it has the same Columns as the Foreign Key Constraint) and can be used for reverse (inversion) look-ups by the DBMS.
If the relationship between the tables happens to be one-to-one then I can set the inversion index to
Unique. This, in turn, should generate a Uniqueness Constraint on the columns of the index.
Now, the reverse isn't necessarily true. If I have a unique index and Unique Constraint and change the index to non-unique (or even delete it) the Unique constraint may still apply (since a unique index isn't required to check for uniqueness).
Does that help?
To my mind, the best UI is:
If I set an Index to unique, EA should check if a Uniqueness Constraint exists for the column set of the Index. If it doesn't, pop up a dialog saying EA will create one (or Cancel to revert the uniqueness setting). If OK, the index's stereotype should change to «AK» (Alternate Key) - since that's what it now is.
In the reverse direction, if I remove the unique setting on the index, then EA should ask if I want to also remove the Uniqueness Constraint (since there must now be one). The stereo type changes from «AK» to «index».
Thoughts? Votes?
Paolo
[size=0]©2006 Paolo Cantoni, -Semantica-[/size]