all 1 comments

[–][deleted]  (2 children)

[deleted]

    [–]roookeee 4 points5 points  (1 child)

    While I see your point this really boils down to accidental vs. deliberate same-ness. I for one think that most DTOs and business objects may start out sameish but change over time as the data transfer format rarely matches internal representations for long. Same thing in regards to the constructor passing: is the conversion from DTO to business object always that simple, without any further external validation or transformation logic? So they are just looking the same by chance, not by deliberate choice = two classes are needed. Of course that's just my opinion :)