wood burning stoves 2.0*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Difference Between Composite Entity and Transfer Ojbect Assembler Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Difference Between Composite Entity and Transfer Ojbect Assembler" Watch "Difference Between Composite Entity and Transfer Ojbect Assembler" New topic
Author

Difference Between Composite Entity and Transfer Ojbect Assembler

raj malhotra
Ranch Hand

Joined: Feb 22, 2007
Posts: 285
Hi

The following text is form http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObjectAssembler.html


The Composite Entity pattern promotes a coarse-grained entity bean design, where entities can produce composite Transfer Objects similar to the one produced by the Transfer Object Assembler. However, the Transfer Object Assembler is more applicable when the composite Transfer Object constructed is derived from a number of components (session beans, entity beans, DAOs, and so forth), whereas the Composite Entity pattern constructs the Transfer Object from its own data (that is, a single entity bean).


Here what i understood is both Composite Entity and Transfer Object Assembler produces Composite Transfer Object.Transfer Object Assembler creates the composite TO using different datasources whereas composite entity build it using one datasource.

I am not sure about last line i mentioned above.Could anyone point me whats the exact difference if i am wrong?

Thanks,
Raj
Leon Omk
Ranch Hand

Joined: Aug 17, 2010
Posts: 75

I can't tell the difference as well. Anyone can help?


OK, so that other guy knows Java better than I do, but I bet he can't speak Wuhanese(a Chinese Dialect) like me.
 
 
subject: Difference Between Composite Entity and Transfer Ojbect Assembler
 
Similar Threads
Value object Assembler can be used ?
Part 2, Fast Lane Reader vs EntityBeans
Retired Patterns
95% for Part II/III
JEE pattern with JEE5