Am I supposed to put every class in one big class diagram?
I will have package for model classes, another package for DAO classes and another package for session bean classes.
If I separate these packages in different class diagrams, how do I show the relationship between the classes in different packages?
RE: fragmenting the class diagram, I genuinely advocate against this and do so quite strongly. Fragmentation by itself is not the issue, but almost all candidates who do fragment, never provide a joined-up view clearly showing that their multiple class diagram fragments fulfil the business problem laid out in the domain model. Specifically, they lose many marks because association and multiplicity information between entities.
Finally, I believe that the complexity of the assignments in the exam don't require fragmentation.
So, for me the answer is clear : For SCEA assignment its better to make single diagram, if you have a big number of classes which could not fit on one diagram, it could only indicate that your solution become to complex (for SCEA needs) and you should simply reduce the number of your classes.
I think it is better to create simple and elegant solution, without going to far into details, and making a huge project, containing many fragmented diagrams.
Of course in case of real projects such fragmentation is inevitable, however SCEA assignment is much simpler than real project and following SCEA authors tips is a good idea IMO.
SCJP 5, SCWCD 1.4, SCBCD 5, SCEA part1
posted 9 years ago
Thank you all.
I really appreciate your response, it's very helpful.
My concern about the multiple diagram is
1. I can't show the big picture for entire system.
2. Some classes like BidRequest entity will appear in several diagrams if I create class diagram for each use case or work flow.
This may confuse your developer.
3. Some association and multiplicity are hard to present or even missing among these fragment class diagrams.
My conclusion is I will have a big class diagram and reduce as many as the number of classes I can.
This may sacrifice some extensibility for system but will definitely address the requirement from SCEA doc.