In our Logical model, I set the 'Constraint Name' on all of the relationships automatically using a macro, for example "FK_OrderItem_to_Order".
These constraint names obviously carry through to the generated Physical model, and into the DDL.
But for subtype clusters I cannot find how to set the constraint names on the Logical model, either manually in the UI, or via the macros.
Instead, they get set automatically by ER Studio (eg. "fk_fk__2_1"), but sometimes it generates duplicates with the name "fk_fk_"
So, does anyone know how to set the constraint names, both manually in the UI, and via automation objects?
btw I can set them on the Physical model (because the subtype clusters are replaced by simple foreign keys) but I do not want to do this because we always generate a new Physical model directly from the Logical model.
I have also created a macro to enforce Naming Standards. However I have created my macro so that it enforces either at the Logical or the Physical model. This is necessary because there are many objects that are only created in the Physical model that we want to control the naming of - for example, Not Null constraint names for Oracle, or Sequence objects. Since they don't exist in the Logical, it's impossible to just run the standards on the Logical. But we want the Logical and Physical to be in sync for objects that are common to both (like Index names), thus a single macro that can be run on both types of models, and names the available objects appropriately was the answer.
That may be what you have to do here, since there does not appear to be a way to name the subtype constraint in the Logical.
Powered by IDERA