No ideas? I think Criteria API need to be extended. Kind regards, Peter
2015-06-30 17:01 GMT+02:00 Peter Ranegger <[email protected]>: > Hi, > > how can I define nested joins using Criteria API or Method Expressions? > I think this feature isn't implemented yet. Does it make sense? > > e.g. if I have a relation Person --> Company --> Country > > criteria() > .join(Person_.company) > .join(Company_.country, > where(Country.class) > .eq(Country_.name, countryName) > ) > .getResultList(); > > > > findByCompany_Country_name(String countryName) > > > > Kind regards, > Peter >
