I am working on 1z0-865 exam. Few queries regarding class diagram contents.
1) If DTO and Entity have same attributes then is it really required to show in class diagram ?
For Example - From servlet to EJB , I am passing DTO object and from Bean to DAO , I am passing entity object to persist in database using JPA.
Difference between DTO and Entity :
All entity classes having @Entity annotation and related onetomany or manytoone or onetoone relationship.
Attributes level , both are same.
I am using UML compliance free product to design Class Diagram for complete system.
Can we show only Class diagram empty box with <<Entity>>EntityName instead of showing all attributes with mapping ? with one note in box like attributes are same as DTO.