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 is iterator in the java collections framework? : java collections
What are the main classes of the list interfaces? : java collections
my interviewer asked me what technical specification you used how to answer that question
What are the differences between the java collection and the java list? : java collections
What are the queues in the java collection framework? : java collections
please mail me the interview question based on java/j2ee
What is the Spring2.5 MVC Navigation flow?
Which interface does java.util.hashtable implement?
Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword
What is the use of hashcode in java ?
What are the different types of features of the java collections framework? : java collections
Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance
What do you understand by synchronization? Why is it important?
who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.
Which sorting algorithm is used by collections.sort() in java ?