Configure key naming pattern

  1. Select Tools > Options... from the main menu.
    Open Options dialog box
    Open Options dialog box
  2. Select Diagramming from the list on the left and open ERD & ORM tab.
    Open ERD & ORM tab
    Open ERD & ORM tab
  3. Change Primary Key Pattern and Foreign Key Pattern.
    Change primary key and foreign key pattern
    Change primary key and foreign key pattern
  4. Create a new ORM-Persistable class on class diagram and synchronize to ERD.
  5. In the Synchronize to Entity Relationship Diagram dialog box, the primary key column name is newly generated.
    Default primary key column name
    Default primary key column name
  6. Create a relationship from the target entity to the newly created entity. As you can see, a foreign key column named is created automatically.
    Default foreign key column name
    Default foreign key column name