| Author |
Part 2/Assignment Question
|
Joe O'Toole
Ranch Hand
Joined: Mar 02, 2009
Posts: 50
|
|
Hi
I am trying to do the class diagram for my assignment.
The elements in my class diagram are modeled as entities or sessions(@entity and @session). Based on the requirements in my assignment I would like to have a number of "helper" type classes for the sessions. I understand the application service pattern to be "helpers" to sessions. Hence, was wondering if I could stereotype these classes with @application service. Hence I would end up with @entity, @session, @application service?
Thanks in advance
Joe
|
 |
ntumba lobo
Ranch Hand
Joined: Oct 21, 2008
Posts: 177
|
|
Instead of using @Session I would rather use the more specific @Stateful and @Stateless, you could lose marks by not being specific enough.
As for the @application I would not personaly use it, I would stick to the default stereotypes @Entity, @Stateful, @Stateless, @MDB and the one for the JSF managed bean (@Managed ?) for the real component classes managed by the container. Any other other class that is not a component managed by the container is a regular class even if it comes from a JEE pattern.
Based on what I did in my own assignment ;-)
Good luck
|
SCJP 5 , SCWCD 5, SCEA 5
|
 |
Sadanandam Kurapati
Ranch Hand
Joined: Sep 09, 2011
Posts: 77
|
|
Hi, I completely second Ntumba's suggestions. Be specific about statefull(@Statefull) or stateless(@Stateless) for session beans and also specify @Entity for entities.
Check this thread for more details on stereotypes.
Regards,
Sadanand
|
SCJP1.5, SCWCD5, SCEA5
|
 |
Joe O'Toole
Ranch Hand
Joined: Mar 02, 2009
Posts: 50
|
|
|
Great - thanks folks
|
 |
Joe O'Toole
Ranch Hand
Joined: Mar 02, 2009
Posts: 50
|
|
Sorry - had 1 more question on this general theme.
In Cade's example, everywhere he has a dependency he includes the text "uses" on the dependency line. I find this makes my diagram very cluttered looking. Just wondering if people typically follow that approach
Thanks
Joe
|
 |
Murali Ranga
Ranch Hand
Joined: Dec 16, 2011
Posts: 38
|
|
In my design whereever the association Relationship between the classes I used <<uses>>, otherwise I used other
UML Relationships
|
 |
 |
|
|
subject: Part 2/Assignment Question
|
|
|