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

Answer Posted / ravi verma

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of interface used in the java collections? : java collections

591


can u draw class/object diagram for ATM

5534


What do you understand by synchronization? Why is it important?

577


What are the types of the main implementing classes in the map interfaces? : java collections

620


What is the use of hashcode in java ?

582






What is the enumerator of the java collection framework? : java collections

568


What are the different types of ways where you can iterate over a list? : java collections

579


How do I find jre path in windows?

532


What is deque in the java collections framework? : java collections

544


Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?

2567


what is mean by hasing and maping in java platform and advantage?

1836


What are the different types of classes implemented in the set interfaces? : java collections

611


What are the differences between the java collection and the java list? : java collections

618


What are the uses of the set interfaces in the java collections? : java collections

541


What is java collection? : java collections

586