deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Ranegger <peter.raneg...@gmx.at>
Subject Re: DS Data: Nested joins
Date Thu, 16 Jul 2015 07:38:43 GMT
No ideas? I think Criteria API need to be extended.

Kind regards,
Peter

2015-06-30 17:01 GMT+02:00 Peter Ranegger <peter.ranegger@gmx.at>:

> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message