Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to model connection between service and dao in uml

 
Kazimierz Trzonek
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do we show relationship between a SampleController class that uses a SampleService class that is implemented by SampleServiceImpl, and SampleServiceImpl uses GenericDao<Sample> interface that is implemented by GenericDaoImpl<Sample> ?

can service be connected with dao by aggregation? (dao is part of service?)
or aggretation is used only to domain classes?

can we use any 'arrow' here? in which direction?
or we simply represent daos as properties?
 
Hong Anderson
Ranch Hand
Posts: 1936
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Service interface doesn't have any relationship to Dao.

SampleServiceImpl have dependency to GenericDao. So you can use dependency.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic