On Tue, Apr 22, 2008 at 8:48 AM, Sal Bass <[EMAIL PROTECTED]> wrote:
>
> I was curious to know how other developers approach the issues of
> abstracting the mappers for testing and development in general.
>

I share your dislike of singletons.  Instead, I would recommend a
service layer that knows the specifics of performing CRUD operations
on simple model objects.  Then look at something like spring to tie it
all together.

Ideally only the service layer would even know about iBatis in this
implementation.  That leaves you free to test or swap implementations,
or work around later issues with the API.

Sheldon

Reply via email to