This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Reply 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: 72

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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Difference Between Composite Entity and Transfer Ojbect Assembler
 
Similar Threads
Part 2, Fast Lane Reader vs EntityBeans
Value object Assembler can be used ?
95% for Part II/III
JEE pattern with JEE5
Retired Patterns