| Author |
Are there too many classes?
|
D. Rose
Ranch Hand
Joined: Apr 25, 2003
Posts: 215
|
|
Hi, I have rectified Busniess domain model and now my class diagram already has 20 classes. I have yet to show any EJB's etc. I think it is getting too heavy. Any opinions?
|
 |
Tomi Tuomainen
Ranch Hand
Joined: Jun 13, 2004
Posts: 86
|
|
Don't show EJB's or maybe just facades. Keep it simple. (my opinion) Tomi
|
 |
Parag Doshi
Ranch Hand
Joined: Jun 29, 2004
Posts: 317
|
|
Yeah, I agree with Tomi. Just stick to the core business model, dont show any implementation specific classes (controllers, delegators,facades,daos etc). If you are still inclined to show the entities and session, show them as <<stereotypes>> in your class diagram. eg. Customer can have a <<entity>> stereotype attached to it. The only thing I am very tempted to show are the adapters to the outside system. Am trying to figure out where they would fit in the class diagram, or I might just show them standing alone in some corner of the class diagram parag
|
 |
Billy Tsai
Ranch Hand
Joined: May 23, 2003
Posts: 1296
|
|
|
i dont think should have more than 30 classes
|
BEA 8.1 Certified Administrator, IBM Certified Solution Developer For XML 1.1 and Related Technologies, SCJP, SCWCD, SCBCD, SCDJWS, SCJD, SCEA,
Oracle Certified Master Java EE 5 Enterprise Architect
|
 |
Eduardo Rodrigues
Ranch Hand
Joined: Jul 01, 2003
Posts: 199
|
|
Hi guys My class diagram contains only 10 classes . I�m showing only the core business model classes. None EJB, only the entities and their relationships... Am I wrong or missing something??? Bye
|
Eduardo Rodrigues<br />SCJP 1.4/5.0 SCWCD 1.3/1.4, SCBCD 1.3, SCMAD, SCEA<br />IBM 484 & 486<br />Belo Horizonte<br />Minas Gerais<br />Brasil
|
 |
Parag Doshi
Ranch Hand
Joined: Jun 29, 2004
Posts: 317
|
|
Originally posted by Eduardo Rodrigues: Hi guys My class diagram contains only 10 classes . I�m showing only the core business model classes. None EJB, only the entities and their relationships... Am I wrong or missing something??? Bye
Eduardo, I dont think the number of the classes matter. If your model meets the requirements of the system, then you are fine. Keeping the model simple should be your main priority. Parag
|
 |
D. Rose
Ranch Hand
Joined: Apr 25, 2003
Posts: 215
|
|
I was also inclined not to show any EJBs etc on class diagram as I think class diagram should purely represent domain and not the framework (J2ee in our case) we want to use. I was confused because lot of people here discussed putting enity/sessions/managers/controllers etc on the diagram. Assignment only says about one class diagram in delverables. I would have liked to draw two diagrams really- one purely domain/business view and other design view. Are there any guidelines for this? Eduardo you need not worry about actual number of classes but make sure you have cpatured all the business model neatly.
|
 |
Eduardo Rodrigues
Ranch Hand
Joined: Jul 01, 2003
Posts: 199
|
|
Thank you so much guys! I will keep my class diagram without 'technology classes'.. Only the business model...
|
 |
 |
|
|
subject: Are there too many classes?
|
|
|