Show association as attribute of Class

Can I show association as attribute of Class (as “CrossingPlaceList” attribute in “CrossingPlace” class; please see attachment)?

Relation_as_attribute.png

Hi Eugeny,

Thanks for your post. Do yo want to convert the association between ORM Persistent Class “CrossingPlace” and “twiceTrack” to be attribute “CrossingPlaceList” on the ORM Persistent Class “CrossingPlace”?

Please be reminded that to create relationship between mapped entities “CrossingPlace” and “twiceTrack”, association between ORM Persistent classes are necessary (as attribute in ORM Persistent class will be synchronize to column in entity, and column type must be a primitive type).

Best regards,
Lilian Wong

I want to see Association and Attribute on the Class Diagram simultaneous. It’s possible?

Hi Eugeny,

Thanks for replying. Actually attribute with a class as type has the same meaning of an association between the classes, they will be duplicated if they are shown simultaneously.

Best regards,
Lilian Wong

Thanks!

Hi Euegny,

It’s my pleasure.

Best regards,
Lilian Wong