• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference Between Composite Entity and Transfer Ojbect Assembler

 
raj malhotra
Ranch Hand
Posts: 288
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 75
Chrome Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't tell the difference as well. Anyone can help?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic