Announcement Announcement Module
Collapse
No announcement yet.
Nested services Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #2
    that using nested DAOs are bad.
    but what about nested services?
    yes i am agree about fo DAO area,

    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

    Comment


    • #3
      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..

      Comment


      • #4
        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, 03:53 PM.

        Comment


        • #5
          simply put,
          nested dao = bad.
          nested services = common practice?
          ok. thank you for clearing that up.

          Comment


          • #6
            Originally posted by titiwangsa View Post
            nested dao = bad.
            Yeah this doesn't sit quite right with me, sounds like some refactoring might be in order.

            Originally posted by titiwangsa View Post
            nested services = common practice?
            Hopefully, otherwise I'm doing it all wrong .
            Last edited by karldmoore; Aug 27th, 2007, 03:53 PM.

            Comment


            • #7
              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

              Hopefully, otherwise I'm doing it all wrong
              and burn all own projects

              regards

              Comment

              Working...
              X