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

whatis arguments &what is default argument

2 Answers   CTS,


Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.

0 Answers  


what debugging tool that can be used to debug the java programs?

1 Answers   Inforica,


httt method

2 Answers   HCL,


What are the different types of collections views being provided by the map interface? : java collections

0 Answers  


Can any one tell me How to explain bank project desription in interview

3 Answers   Infosys, Wipro,


What is the use of hashcode in java ?

0 Answers  


Is it Mandatory to map each pojo class variable with table column in Hibernate? Is there any alternative to skip some of those? Thanks in advance...

2 Answers   Span Systems,


how to delete cookie information?and when it will delete?

3 Answers   SolutionNET,


How to use ANT?

2 Answers  


VSS Objectives

1 Answers  


Why do you use Context Object

2 Answers   HCL,


Categories