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



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

Answer / 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

More Java J2EE AllOther Interview Questions

VSS Objectives

1 Answers  


I have include a jsp page by using <jsp:include page="/.../xyz.jsp"/> The thing is that the xyz.jsp page has its submit button.When i click on that button the whole main page get refreshed.But i want to refresh only the xyz.jsp page.How could i achive it so that i can only refresh the xyz.jsp not the main page page?

4 Answers  


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

0 Answers   NSN,


when exactly should we use throws ,and wen exactly should we use the try and catch for exceptional handling

0 Answers  


How is hashset maintained in memory by java ?

0 Answers  






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

0 Answers   Cap Gemini,


what is the diffrence between insurance and telecom domain?

1 Answers  


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.?.

0 Answers   iGate,


What is java collection? : java collections

0 Answers  


What is the servletcontext listener and what is JspContext and page context pls tell in simple words.

1 Answers   IBM,


what is difference between struts1.2 and struts2.0

1 Answers  


which book is the best for preparing for SCWCD 1.5

4 Answers   Google,


Categories