ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher DeGuise" <christopher.degu...@be-pragmatic.com>
Subject IBATIS.NET change proposal
Date Tue, 17 Jun 2008 17:18:55 GMT
Hi All,

I would like to alter how aggregate containers are returned from the cache.
The essential issues is that the aggregate container that is returned from
the cache is the same container that is cached. Thus any changes to the
container will impact the cache until it expires and is reloaded.

I have created a simple patch that simply creates a new new aggregate
container form the one that is cached. This ensures that any domain/ui code
that might alter the container will not effect other calls to the data
layer. Example: "return new List(cachedList);"

While the code is simple, this does alter how the API behaves I am curious
if people have come to except it to work this way? Or more appropriately is
this meant to work this way for design consistency?


View raw message