This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Enumeration in assignment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Enumeration in assignment" Watch "Enumeration in assignment" New topic

Enumeration in assignment

Ranganathan Kaliyur Mannar

Joined: Oct 16, 2003
Posts: 1076

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
internet detective

Joined: May 26, 2003
Posts: 30138

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.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Dmitri Ericsson
Ranch Hand

Joined: Feb 16, 2010
Posts: 109
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

SCEA 5, SCJP 6 My SCEA Experience
Ranganathan Kaliyur Mannar

Joined: Oct 16, 2003
Posts: 1076

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)
wood burning stoves
subject: Enumeration in assignment
Similar Threads
Problem with ArrayList toArray method
'title' attribute in Select box in relation to tooltip display
switch on a string?