Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enumeration in assignment

 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Has anyone had Enums in their design. I believe UML supports enums through stereotypes...
for example, I would like to create an enum Result (PASS, FAIL) and have it in my entity...with JPA supporting enums, its cool to have it...
but, has anyone had any specific issues with this?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ranga,
I did put an enum in my class diagram. It wasn't a JPA one so I just used a sterotype called <<enum>> to show what it was.
 
Dmitri Ericsson
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that there is no need to go in such detail as the actual impementation of types. I've used some fields with type meaning, by I did'nt mentioned how they are realized (enums, constants etc
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, yeah...just a curiosity...I like them and use them frequently...
Also, Argo UML has a separate component for that (ends up having a <<enum>> stereotype)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic