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
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
#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
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
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
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
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
7 matches
Mail list logo