Composite entity pattern: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 15:
* materializing all the data in a coarse-grained entity whenever it's accessed, is unacceptably expensive
* In Java, implementation of the ejbStore() method needs to be smart enough to avoid issuing all the updates required to persist the entire state of the object, unless the data has changed in all the persistent objects.
Composite entity pattern can only be implemented using BMP or by adding more hand-coded persistence logic to comtainer managed persistance (CMP) beans. These both approaches reduce the maintainability.<ref name=":eojdad"/><ref name=":stdd">{{Cite book|title = Expert One-on-One J2EE Design and Development|last = Johnson|first = R. |publisher = Wiley Publishing, Inc|year = 2003|___location = Indianapolis|volume = |pages = 290}}</ref>
 
==Sample code==