This week's book giveaway is in the Java 9 forum. We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line! See this thread for details.
Composite Entity lost some of its advantages when EJB 2.0 was introduced. Sun now recommends to implement it with local CMP entity beans. OK, this makes perfect sense.
My question is: what is the purpose of this pattern now ? A) to manage (create/delete) dependent object from composite object B) to hide dependent object from other components thus making composite object act as "facade"
I thought that answer is B, but i found that in Pet Store composite object has getters for dependent objects local interfaces, so it can't be B.