Hi, there is an Problem.
I have create an Indexed Class like this
Code:
class Holder{
@IndexedEmbedded
Set<MyKey> keys = new HashSet<MyKey>();
}
the Key is something like this:
Code:
class MyKey{
public MyKey(char c,int i){ this.c=c; this.i=i; }
char c;
int i;
}
now i have created some instances and indexed them:
Code:
Holder holder = new Holder();
holder.keys.add(new MyKey('a',1));
holder.keys.add(new MyKey('b',2));
holderService.save(holder);
This works fine and no Problems occurred up to this Point. But if I try to search for an holder which contains a key with c:'a' and i:2 I find the example-holder. Is there a possibility to avoid this? I need to search for only these objects where the two values are in ONE Key.