i think i read somewhere, most probably from one of the previous posts,
that using nested DAOs are bad.
but what about nested services?
i think i read somewhere, most probably from one of the previous posts,
that using nested DAOs are bad.
but what about nested services?
yes i am agree about fo DAO area,that using nested DAOs are bad.
but what about nested services?
i think that the answer is nested BO
each entity should has a DAO object and this a BO, some requerimentes make you to create a special BO that call or use 2..N BO (nested services)
HTH
- Manuel Jordan
Kill Your Pride, Share Your Knowledge With All
The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7
Blog
Technical Reviewer of Apress
- Pro SpringSource dm Server
- Spring Enterprise Recipes: A Problem-Solution Approach
- Spring Recipes: A Problem-Solution Approach, 2nd Edition
- Pro Spring Integration
- Pro Spring Batch
- Pro Spring 3
- Pro Spring MVC: With Web Flow
- Pro Spring Security
BO?
Bussniess Object?
i have entities (tables), each entity has a dao,
a services uses multiple dao.
the @Transactional attribute is in the services
BO = services?
i have some logic that exists in more than one service.
using a nested service looks like the easiest way..
Services have to collaborate with other services otherwise you are going to have to copy and paste code. Where else would the common code live?
Last edited by karldmoore; Aug 27th, 2007 at 02:53 PM.
Barracuda Networks SSL VPN Lead Developer
http://pramatr.wordpress.com
http://twitter.com/karldmoore
http://www.linkedin.com/in/karldmoore
Any postings are my own opinion, and should not be attributed to my employer or clients.
simply put,
nested dao = bad.
nested services = common practice?
ok. thank you for clearing that up.
Last edited by karldmoore; Aug 27th, 2007 at 02:53 PM.
Barracuda Networks SSL VPN Lead Developer
http://pramatr.wordpress.com
http://twitter.com/karldmoore
http://www.linkedin.com/in/karldmoore
Any postings are my own opinion, and should not be attributed to my employer or clients.
i did almost the same question long time ago
here the link
http://forum.springframework.org/showthread.php?t=29702
i guess can be useful
regards
and burn all own projectsHopefully, otherwise I'm doing it all wrong![]()
regards
- Manuel Jordan
Kill Your Pride, Share Your Knowledge With All
The Fear Of The LORD Is The Beginning Of Knowledge, But Fools Despise Wisdom And Discipline. Proverbs 1:7
Blog
Technical Reviewer of Apress
- Pro SpringSource dm Server
- Spring Enterprise Recipes: A Problem-Solution Approach
- Spring Recipes: A Problem-Solution Approach, 2nd Edition
- Pro Spring Integration
- Pro Spring Batch
- Pro Spring 3
- Pro Spring MVC: With Web Flow
- Pro Spring Security