> On Jan 26, 2015, at 5:48 PM, Santi Kumar <sa...@veradocs.com> wrote:
>
> Yes. I'm using POJO and annotating one of the field with RiakIndex. When I'm
> reading the object with the key, as the tag field is not part of the object,
> while writing I dont have the tag value while writing the object.
>
> Class Foo {
>
> private String fooId;
>
> @RiakIndex(name="barid")
>
> private String barid;
>
> .....
>
> }
>
> When I'm storing the object, I set the barid for the object and storing the
> object. Annotation is taking care of tagging the object with barid.
>
> When I query the object with barId, I have the barId value so I'm setting
> barId to object and writing it. But If I lookup the object with fooId, as
> barId value is not part of the object I cant tag the object with barid. SO
> when I'm writing the object I'm losing the association .
>
> So Is there any thing I'm missing to make it part of the object state. That
> way as you said, When I read-modify-write, the tag value exist all the time.
>
>
Hi Santi,
I’m having trouble following your exact issue. Is it possible for you to share
the problematic code so we can try to reproduce it here?
Thanks,
Chris
Christopher Meiklejohn
Senior Software Engineer
Basho Technologies, Inc.
cmeiklej...@basho.com
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com