• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Are DTO's still relevant?

 
Rahul Mishra
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Do we still feel the need for DTO's in our design or can we take a detached entity straight up to the managed bean?


What do you think?


Regards,
Rahul
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. Both are legitimate. I think that later is more common with a clean design because the DTO would just be a copy of the entity.

DTO/value objects can still be useful when collecting data from different places.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic