Hi,
I have one entity that contains a set of another entity.
Entity1 contains Set entityTwos
I want to create a search criteria for an "id" field inside entityTwos.
I searched, but didn't get any answers. Anybody have an idea?
Thanks, Sri
Hi,
I have one entity that contains a set of another entity.
Entity1 contains Set entityTwos
I want to create a search criteria for an "id" field inside entityTwos.
I searched, but didn't get any answers. Anybody have an idea?
Thanks, Sri
It was easy. Something like:
criteria.createAlias("entityTwos", "entityTwo");
criteria.add(eq("entityTwo.id", ...));