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
What are the uses of the set interfaces in the java collections? : java collections
What is the enumerator of the java collection framework? : java collections
Which java collection class can be used to maintain the entries in the order in which they were last accessed?
How do I find jre path in windows?
In hyderabad, which s/w training center is best for java, other than corejava what r the new tools to learn in java,which tool is best & have current requirement,pls give me information about java to learn ?
my interviewer asked me what technical specification you used how to answer that question
What is an algorithm in java collection framework? : java collections
Which interface does java.util.hashtable implement?
What are the types of interface used in the java collections? : java collections
Explain the OOPS concept in Realtime Scenarion ? Take example as CAR. Please explain indetail ?
How is hashset maintained in memory by java ?
What do you understand by synchronization? Why is it important?
What is the difference between comparable and comparator in java.util pkg?
What are the different types of classes implemented in the set interfaces? : java collections
What are the main classes of the list interfaces? : java collections