ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clinton Begin" <clinton.be...@gmail.com>
Subject Re: A bug in cacheKey?
Date Tue, 05 Sep 2006 19:45:52 GMT
What version of iBATIS are you running?

This was a bug in the past, but has been resolved for a while.  CacheKey
uses very explicit equality checks now.

Clinton

On 9/5/06, eloy j <unidad.g.eloy@gmail.com> wrote:
>
> Yes, I've experiencing an error with cache.
>
>
> Example:
> First Select with vo.setId("AV"), I get some values and they are in cache.
> Second Select with vo.setId("B7"). I get the same values, and obviously
> the values in DB are different.
> Debugging I see the behavior that I have commented.
>
> Any ideas.
> Thanks
>
> eloy.
>
>
> 2006/8/29, Jeff Butler <jeffgbutler@gmail.com >:
>
> > This is expected.  You should see that key3.hashCode() == key4.hashCode(), but
> > key3.equals(key4) == false.
> >
> > The test class com.ibatis.sqlmap.CacheStatementTest has tests for this
> > possibility.
> >
> > Are you experiencing an error with cache?
> >
> > Jeff Butler
> >
> >
> > On 8/29/06, eloy j <unidad.g.eloy@gmail.com > wrote:
> > >
> > >  If you executes the following code the values are identical:
> > >
> > >
> > >
> > > CacheKey key3 = *new* CacheKey();
> > >
> > > CacheKey key4 = *new* CacheKey();
> > >
> > > key3.update("AV");
> > >
> > > key4.update("B7");
> > >
> > > System.out.println("Value 1 '" + key3.toString() + "'");
> > >
> > > System.out.println("Value 2 '" + key4.toString() + "'");
> > >
> > >
> > >
> > > Perhaps there is confused something to me, but it seems a bug.
> > > Thanks.
> > >
> > >  *Eloy GarcĂ­a-Borreguero Melero*
> > >
> >
> >
>

Mime
View raw message