This query works, the fullPath field is a List<String>:
KeyLookup lookup
= ofy().load().type(KeyLookup.class).filter("fullPath IN", key.getFullPath()).first().get();
The query above also fetch the entities having the same String elements in the List<String> as with key.getFullPath(), however it also fetches those entities having the same String in the list with additional more String in the list.
How can I filter only those Entity having the exact same elements in the list, like "no more, no less"
Update:
For example
One entity (say Object1) field fullPath contains:
- "One"
- "Two"
- "Three"
Another entity (say Object2) field fullPath contains:
- "One"
- "Two"
- "Three"
- "Four"
And key.getFullPath contains:
- "One"
- "Two"
- "Three"
- "Four"
Then the query above will return Object1 and Object2, however what I need is that it only returns Object2
fullPathList? - Thanos Makris