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

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -