java - How to execute normal SQL query in Hibernate without HQL? -
i have pretty complex join query select few items db, , doesn't involve update required table. why, don't want use hql (hibernate query language, instead want execute simple sql query.
is possible execute normal sql - join query involves 3 different tables in hibernate? use java - struts framework.
if not possible have stick hql , post here query need in writing down hql based class(tables) creations , hql based query string.
also, if please give me example query couple or 3 table joins , how set parameters sql.
from below line of code can use query hibernate
its call native sql
session.createsqlquery("select * table join table1 b on a.id = b.id ").list();
for more go here
Comments
Post a Comment