Igor,

As far as I know, the hash code would be calculated on the client side and
sent over within the binary format. Server does not calculate the hash code.

D.

On Tue, Jun 20, 2017 at 12:08 AM, Igor Rudyak <irud...@gmail.com> wrote:

> Hi,
>
> I am using simple POJO objects as key/value pair for my Ignite cache. Also
> I would like to store objects as BinaryObjects. Thus Ignite cache was
> created using:
>
> *mycache = ignite.getOrCreateCache("mycache").withKeepBinary()*
>
> When I am trying to put objects in the cache I am receiving such an error:
>
> *java.lang.IllegalArgumentException: Cache key must override hashCode()
> and
> equals() methods: com.test.MyKey*
>
> Isn't this contradicts to *BinaryObjects* concept? As far as there are no
> *com.test.MyKey* class deployed on the server side all implemented class
> methods (including *hashCode* and *equals*) are useless, cause they will
> not be available on the server.
>
> Igor
>

Reply via email to