ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yaog <yairo...@gmail.com>
Subject CacheKey and byte[] problem
Date Sun, 07 Feb 2010 15:06:24 GMT


I have a select staement that has a Where cluase the gets a byte[].

Now, if I set the same byte[] instance I enjoy the cache.

However, if I have different instnaces for the byte[] with identical content
(i.e. Array.equals(b1,b2) returns true, but b1.equals(b2) returns false),
then I see "missed cahce".

I think this is a bug in iBatis. Maybe when the hashcode is calculated?

Please advise.
View this message in context: http://old.nabble.com/CacheKey-and-byte---problem-tp27489427p27489427.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
For additional commands, e-mail: user-java-help@ibatis.apache.org

View raw message