1.

What are the components of the Composite Entity pattern?

Answer»

This pattern is used in EJB (Enterprise Java Beans) persistence mechanism. A COMPOSITE entity represents the object GRAPH and is an EJB entity. Whenever a composite entity is updated, the object beans that are INTERNALLY DEPENDENT on this bean are updated automatically. There are 4 main components of the Composite Entity Pattern:

  • Composite Entity - Primary entity bean that can have a coarse-grained object that is meant for persistence.
  • Coarse-Grained Object - This contains the dependent objects which have their life cycle and in turn manages the lifecycle of dependent objects.
  • Dependent Object - This object is dependent on the coarse-grained object throughout the persistence lifecycle.
  • Strategies - These represent how to implement the composite entity.


Discussion

No Comment Found