RE: [OT] Loading data for view

2005-08-19 Thread McDonnell, Colm (MLIM)
August 2005 17:25 To: Struts Users Mailing List Subject: Re: [OT] Loading data for view Thank you, for your very elaborate answer. After reading your post, it seems that there is really no big difference between the two approaches, so I guess I'll stick with what I've already im

Re: [OT] Loading data for view

2005-08-18 Thread Tom Ziemer
005 15:52 To: Struts Users Mailing List Subject: Re: [OT] Loading data for view Thanks for your answers. I added a new method to my DAO that allows me to execute predefined queries and returns kind of "general-purpose-dto"s, that only consist of a treemap which stores the requested va

RE: [OT] Loading data for view

2005-08-18 Thread McDonnell, Colm (MLIM)
#x27;ll need to wrap primitives and most access will require casting -Original Message- From: Tom Ziemer [mailto:[EMAIL PROTECTED] Sent: 18 August 2005 15:52 To: Struts Users Mailing List Subject: Re: [OT] Loading data for view Thanks for your answers. I added a new method to my DAO th

Re: [OT] Loading data for view

2005-08-18 Thread Tom Ziemer
Thanks for your answers. I added a new method to my DAO that allows me to execute predefined queries and returns kind of "general-purpose-dto"s, that only consist of a treemap which stores the requested values from the db. So I get one g-p-DTO per row in my ResultSet that can be passed to the

RE: [OT] Loading data for view

2005-08-18 Thread McDonnell, Colm (MLIM)
is pattern: org.apache.commons.beanutils.RowSetDynaClass. -Original Message- From: Tom Ziemer [mailto:[EMAIL PROTECTED] Sent: 18 August 2005 13:01 To: Struts Users Mailing List Subject: [OT] Loading data for view Hi everybody! In my app, I am using DAOs/DTOs to perform CRUD operations on a legacy datab

Re: [OT] Loading data for view

2005-08-18 Thread Frank W. Zammetti
Sometimes the simplest answer is the best... and even when it isn't the best, it's *still* simple :) ... How about just creating a new DAO/DTO that only contains the data you need? It would be a duplication to a degree, but that's not *always* an absolutely evil thing... especially since it sound

[OT] Loading data for view

2005-08-18 Thread Tom Ziemer
Hi everybody! In my app, I am using DAOs/DTOs to perform CRUD operations on a legacy database packed with lots of triggers and stored procedures. Some of my DTOs are pretty complex, meaning, they have to be assembled from many tables. A simple example: Object a (loaded by aDAO) has a list of