• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Including getters/setters on Entities within class diagram for Assigment

 
Joe O'Toole
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Just wondering if people think it is necessary to include getters/setters on the entities within the class diagram for their assignment

Thanks
Joe
 
Marcelo Ortega
Ranch Hand
Posts: 528
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We would normally only show important accessor methods in class diagrams. The Entities represent data from a relational database, so the private attributes can serve this purpose. But its your choice.
 
Joe O'Toole
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marcelo
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic