I have a pretty complex Join query to select few items from DB, and it doesn\'t involve any Update required back to this table. Which is why, I don\'t want to use the HQL (Hiber
With JPA you can user entityManager.createNativeQuery(...) with Hibernate there's session.createSQLQuery(...)
from below line of code you can use any Query with hibernate
its call Native SQL
session.createSQLQuery("SELECT * FROM table as a join table1 as b on a.id = b.id ").list();
for more help go here