You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@deltaspike.apache.org by Peter Ranegger <pe...@gmx.at> on 2015/06/30 17:01:35 UTC

DS Data: Nested joins

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

Re: DS Data: Nested joins

Posted by Peter Ranegger <pe...@gmx.at>.
No ideas? I think Criteria API need to be extended.

Kind regards,
Peter

2015-06-30 17:01 GMT+02:00 Peter Ranegger <pe...@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
>