Generate non-identifying relationship for Object-Type Attribute of Class

Can I generate non-identifying relationship for Object-Type Attribute of Class (attribute “SwMark” of class “SwitchesAndCrossing”, please see “Attr_obj_type.png”)? Can I get follow ERD (see “desire_ERD.png”)?


desire_ERD.png

Attr_obj_type.png

Hi Eugeny,

Thanks for your post. To generate relationship between entities “SwitchesAndCrossing” and “SwitchMark2”, you need to add association between the classes (you can refer to attached image) and synchronize the class diagram to ERD again.

Best regards,
Lilian Wong

association.png

It’s possible without association?

Hi Eugeny,

Sorry for my late response. For generate relationship between entities when synchronize from class diagram to ERD, you must create association between classes. The attribute of class is mapped to column of entity, but column’s type must be a primitive type. Therefore relationship between classes is required. Hope this answer your question.

Best regards,
Lilian Wong

Thanks!

Hi Eugeny,

You are welcome.

Best regards,
Lilian Wong