0 votes
in Design Patterns by
What are the components of the Composite Entity pattern?

1 Answer

0 votes
by

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:

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

Related questions

0 votes
asked Sep 14, 2022 in JSF by sharadyadav1986
0 votes
asked Jul 24, 2023 in Design Patterns by SakshiSharma
...