Vladimir,

Thanks for the clarification.

Igor

On Jun 20, 2017 2:37 AM, "Vladimir Ozerov" <[email protected]> wrote:

> Igor,
>
> This exception is just a regression from recent work on binary
> serialization in the scope of 2.0 release. If BinaryMarshaller is set, we
> should not force users to have equals/hashCode methods on keys. There is a
> ticket [1], hopefully it will be merged to master soon.
>
> Vladimir.
>
> [1] https://issues.apache.org/jira/browse/IGNITE-5383
>
> On Tue, Jun 20, 2017 at 1:08 AM, Igor Rudyak <[email protected]> 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