I have following classes:
@Embeddable Class A // (with field String x);
Class B // (with field @Embedded A a)
Class C // (with field @OneToOne B b);
I would like to create method getAllByXs(List<String> xs)
using criteria to get all C entries where c.b.a.x
is in xs
Typed query with content SELECT c FROM C c JOIN c.b b WHERE b.a.x IN :param
works fine. How to write same query using Criteria?