hibernate - select from subquery criteriaBuilder -
could tell me example of how can make hibernate query join subquery using criteriabuilder
here simple example:
select idschool, name user left join (select idschool student age < 15) newtable on idschool = idschool
thanks
hibernate query language hql or jpa query language jp ql, both don't support joining subquery. subqueries can occur on select or clauses in hibernate (and not on clause). rule applies criteriaquery.
see related posts:
alternatively, can execute native sql query.
Comments
Post a Comment