I think DTOs is the best solution. However, is tedious to copy properties. Yes, I know that you can use BeanUtils but sometimes you need a DTO that is a combinations of two model objects and you have to use getters and setters.
2005/10/17, Vic Cekvenich <[EMAIL PROTECTED]>: > > I don't think anything wrong w/ DTO. > > You have your DAO, your model... in my case I use collections as DTO, > but beanutils is fine. > > .V > > [EMAIL PROTECTED] wrote: > > Hi, Gurus, > > > > Background: I just started a Struts project with Hibernate. I have > chosen to use the Data Access Object with (Abstract Factory) design pattern > because my client uses Oracle and I use Postgresql database. I am working > with other teams remotely and they decided to use DTO. > > > > Problem: A few months ago, I recall a message thread on this list with a > subject header of: 'DTOs are evil'. Since I am new to this, I am having > problems understanding why. I thought that DTO are for data storage and data > transfer between Business and Value Objects. > > > > Questions: I have the following questions: > > > > 1. Why I shouldn't choose it? > > > > 2. Should I be using the Apache Commons BeanUtils in my action? It has a > method like BeanUtils.copyProperties(...). > > > > 3. If not BeanUtils, then what do you recommend? > > > > > > Thanks, > > > > Bob > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > -- > thx, > .V > > Your Roomity Broadband Community <http://roomity.com/demo.jsp> > > cell: 917 825 3035 in DFW > email: netsql at roomity.com <http://roomity.com> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >