Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Common ancestor for JPQL subqueries #323
I anticipated that both JPA and Hibernate have common interface for subqueries like JPQLQuery is for queries but noticed this not to be the case when I got the following exception
It seems that the JPQLSubQuery is merely a dummy implementation instead of being an interface which was my initial assumption. Would it be possible to convert it as such or make JPASubQuery and HibernateSubQuery extend it instead AbstractJPQLSubQuery if backwards compatibility is a concern in this case, because I'd like to continue using query factory without any knowledge of the underlying system and currently the only feasible solution is not to extract the sub query as a variable.