Transfer object

from Wikipedia, the free encyclopedia

The transfer object or data transfer object (abbreviation DTO ) is a design pattern from the field of software development . It bundles several data in one object so that they can be transferred with a single program call. Transfer objects are used in distributed systems to replace several time-consuming remote accesses with a single one.


Only a limited selection of data types is available for the attributes of transfer objects. This consists of primitive data types , simple classes and other transfer objects. In addition, it must be ensured that no complicated relationships arise between the transfer objects. A simple hierarchy with a class diagram in the form of a tree is recommended .


A transfer object is not the same as a value object .


  • Karl Eilebrecht, Gernot Starke: Compact patterns. Design patterns for effective software development. 2nd edition, Spektrum Akademischer Verlag, Munich 2007, ISBN 978-3-8274-1591-2 , pp. 76-79
  • Martin Fowler : Patterns of Enterprise Application Architecture. Pearson Education, Boston 2003, ISBN 0-321-12742-0 , pp. 401-413

Web links

Individual evidence

  1. ^ Karl Eilebrecht, Gernot Starke: Patterns compact . 4th edition. Springer Vieweg Verlag, Berlin 2013, ISBN 978-3-642-34717-7 , p. 114 .