Enum vs Entity distinction

0 votes
asked Jan 29 in Wanted features by anonymous
Hi,

Thank you for providing this amazing tool to the entire humanity ! :P

I usually use PlanUml for every design I have to do, easy maintenability, nice design, very practical !

I simply can't deal without it !

I'm looking for a way to distinguish an enum from an entity in a class diagram, both are abbreviated by a "E" do you know if it's actually possible.

Regards !
commented Feb 2 by JanRoma (140 points)

Hi,

actually the distinction in this case is made basing on the color of the circle.

Like below:

@startuml

entity          entity
enum            enum

@endum

It results in such diagram:

You can easily distinct them by the color of the circle or the name that you are setting.

What other solution you see? Could you describe it?

Jan

2 Answers

0 votes
answered Feb 3 by JanRoma (140 points)

Hi,

actually the distinction in this case is made basing on the color of the circle.

Like below:

@startuml

entity          entity
enum            enum

@endum

It results in such diagram:

You can easily distinct them by the color of the circle or the name that you are setting.

What other solution you see? Could you describe it?
 

Jan

0 votes
answered Feb 8 by kirchsth (7,480 points)

Hi,

you can change it, if you use a stereotype (I think it cannot be changed without stereotype).
It could be that it works with styles too, but I didn't test it.

in following enum uses lowercase e

@startuml
hide stereotype
skinparam spotChar<<enum>> e

enum enum <<enum>>
entity entity
@enduml




Details see Make it possible to change the spot letter by stereotype - PlantUML Q&A

BR Helmut

...