aspose file tools
The moose likes Java in General and the fly likes What is the difference between DTO and Bean? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "What is the difference between DTO and Bean?" Watch "What is the difference between DTO and Bean?" New topic
Author

What is the difference between DTO and Bean?

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1145

What is the difference between DTO and Bean? Both are having same thing yup some methods are different but which created for which purpose??
kaustubh


No Kaustubh No Fun, Know Kaustubh Know Fun..
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2896
    
    1

There is not a very vast difference, but both are Java Beans, for more info:
http://stackoverflow.com/questions/1612334/difference-between-dto-vo-pojo-javabeans


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1145

So, for many people, DTOs and VOs are the same thing (but Fowler uses VOs to mean something else as we saw). Most of time, they follow the JavaBeans conventions and are thus JavaBeans too. And all are POJOs.


these lines confusing me again........

kaustubh
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2896
    
    1

And we may know what exactly confusing you ? you really don't have to think a lot about the naming given by the various programmers to the same thing, that is bean, In some context the java beans names decided by the context used, like in EJB, the POJO name comes for the beans and for transferring the data, the DTO name comes.

Now thins my understanding of this thing, the more experienced programmer can tell us better ;)
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1145

ohk ... thanks da
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the difference between DTO and Bean?
 
Similar Threads
Print ResultSet data on JSP
Schema&DTO
backing bean and managed bean-difference?
DAO vs DTO
Difference between Page Bean and Form Bean??