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

what is the difference between banking and insurance domain?

2 Answers  


"Sun Certified Java Programmer" This is one String , we need to print SCJP, write the java code dynamically? pls reply this questions

6 Answers   Photon,


whats the relation ship between LDAP and JNDI?

1 Answers  


Which java collection class can be used to maintain the entries in the order in which they were last accessed?

0 Answers  


What are the interfaces in java collections? : java collections

0 Answers  






what is the difference between checked and unchecked Exceptions?

4 Answers   CTS,


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

0 Answers  


Which sorting algorithm is used by collections.sort() in java ?

0 Answers  


Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.

0 Answers  


wnet use DAO design in u r project?

1 Answers   Godrej,


what is difference between web server and application server?

1 Answers   L&T,


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,


Categories