| 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
|
|
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
|
|
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
|
 |
 |
|
|
subject: What is the difference between DTO and Bean?
|
|
|