Composite/Aggregate Entity Bean Pattern

Can the Composite/Aggregate Entity Bean Pattern only be implemented for Bean ManageredPersistence ? Is this the case for EJB1.1 and EJB2.0 ?
[161 byte] By [pxmartin] at [2007-9-27 2:53:29]
# 1
It is the case for EJB 1.1, you could use OR mappings tools -for Dependant Value Classes.In EJB 2.0 you would use Container Managed Relationships.
TravisK at 2007-7-4 23:18:53 > top of Java-index,Other Topics,Patterns & OO Design...
# 2

> Can the Composite/Aggregate Entity Bean Pattern only

> be implemented for Bean Managered Persistence ?

No, you could also use CMP by applying deep copy semantics.

However applying the Composite Pattern directly to EJB's without applying ValueObject semantics is generally a bad idea. The granularity is way to small.

MartinS. at 2007-7-4 23:18:53 > top of Java-index,Other Topics,Patterns & OO Design...