aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Enumeration in assignment" Watch "Enumeration in assignment" New topic
Author

Enumeration in assignment

Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1075
    
  10

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?


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29219
    
135

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.


[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
Bartender

Joined: Oct 16, 2003
Posts: 1075
    
  10

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
enums
Enums
Problem with ArrayList toArray method
switch on a string?
'title' attribute in Select box in relation to tooltip display