DAO and Entity Beans


EJB design: DAO and Entity Beans

  1. DAO and Entity Beans (2 messages)

    Recently I started reading a j2ee design pattern book, which advocates a persistance framework. In this framework they have place the dao in front of the entity bean. I always thought it was to work the other way around, with the entity bean delegating to the dao? Are both options valid in certain circumstances? Comments?

    Threaded Messages (2)

  2. Misinterpretation[ Go to top ]

    You more than likely misinterpreted the diagram. DAO components are accessed from the entity bean, not the other way around.

  3. Misinterpretation[ Go to top ]

    Thats what I thought. But I didn't. The book is "j2ee design patterns applied", by wrox. It definatly has the dao in front of the entity bean...(pg97)