javaarchitecturedata-transfer-objectsdomain-object

Difference between Transfer objects and Domain objects


Could you please explain the difference between Transfer objects and Domain objects in simple terms ? And if u could give a Java example, that would be great..


Solution

  • If using anemic data model (i.e. your domain objects don't have any logic), DTO and domain object can be the same object.

    Related: http://techblog.bozho.net/?p=427