Generating correct ERD from Class Diagram

Hi,

In my class Diagram, I have the following class:

Class - USER
Attributes - ID : int

  • LOGIN : String
  • PASS : String
  • EMAILS : Set

When I generate the ERD from that, I get

Entity - USER
Columns - ID : number

  • LOGIN : varchar2
  • PASS : varchar2
  • EMAILS : number

When actually I should get TWO entities

Entity - USER
Columns - ID : number

  • LOGIN : varchar2
  • PASS : varchar2

Entity - EMAILS
Columns - USERID : number

  • EMAIL : varchar2

Is it possible? Am I doing something wrong?

Thanks, Sergio.

Hi Sergio,

We do not convert Set type to a One-to-Many relationship in Entity Relationship Diagram. I will talk to our developers and see if we could support this.

If possible, you can specify the EMAILS attribute as an String[] type. The transformed ERD will then appear as what you are looking for.

Best Regards,
Jick