I have collection Set<Tag>
in my entity class. Tag
class contains only Long id
and String
value. Im trying to find Place
by Tag
but im getting error Could not analyze lambda code
String name = places.getTag().getName();
if (name != null) {
stream = stream.where(p -> p.getTags().iterator().next().getName().equals(name));
}
There is way to make it tight and elegant?
I know that my code is incorrect, and im getting error because Jinq probably doesn't support something like this p.getTags().iterator().next().getName()