adspace


How is hql query created?

Answer Posted / Rahul Chakraborty

HQL queries are defined by writing a string in a syntax similar to SQL but for objects instead of tables. They start with 'FROM' clause, followed by the root entity class or alias and any JOINs if necessary, and end with optional WHERE, GROUP BY, ORDER BY, or other clauses. For example: 'SELECT p FROM Person p WHERE p.age > 30'.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is latest hibernate version?

493