• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Composite Entity and EJB 2.0

 
Jacek Ostrowski
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ranchers

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.

What do you think ?

Jacek
 
Jacek Ostrowski
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is my question too dumb or too tough for you ?

Please help me here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic