*Filter candidates using TestYourCandidate.com and save 80% time ( saving time for recruiters and interviewers)
*More than 50% candidates can be filtered on Candidate Screening online tests
*Inbuilt exams are available in library, created and tested by experts Try Today...
HQL: The Hibernate Query Language
The Hibernate Query Language is executed using session.createQuery().
This tutorial includes from clause,Associations and joins, Aggregate functions,The order by clause,The group by clause,Subqueries.
The from clause
from Employee // Employee is class name mapped to EMPLOYEE TABLE
from Employee as e
from Employee e where e.empId = 3;
List empList = session.createQuery("from Employee").list();
Associations and joins
from Employee e where e.scopeModFlag = 1 and pc.isDeleted != 1
List empList = session.createQuery("from Employee e where e.scopeModFlag = 1 and pc.isDeleted != 1").list();