ravi verma


{ City } nagpur
< Country > india
* Profession * senior software engineer
User No # 96056
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 5
Users Marked my Answers as Wrong # 2
Questions / { ravi verma }
Questions Answers Category Views Company eMail




Answers / { ravi verma }

Question { TCS, 10959 }

what are advantages of HQL?
what are advantages of Native SQL?
what are advantages of Criteria API?


Answer

find a persisted user by user id which was primary key in
that case. What if we want to search a user by user name,age
or email and none of these attributes is a primary key.
Hibernate provides a query language similar to the standard
SQL to perform operations on the Hibernate objects. The
advantage of using HQL instead of standard SQL is that SQL
varies as different databases are adopted to implement
different solutions,but HQL remain the same as long as you
are within the domain of Hibernate; no matter which database
you are using

Is This Answer Correct ?    5 Yes 2 No