Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is iterator in the java collections framework? : java collections

959


What are the main classes of the list interfaces? : java collections

1018


my interviewer asked me what technical specification you used how to answer that question

2368


What are the differences between the java collection and the java list? : java collections

1096


What are the queues in the java collection framework? : java collections

1010


please mail me the interview question based on java/j2ee

1933


What is the Spring2.5 MVC Navigation flow?

6376


Which interface does java.util.hashtable implement?

1181


Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword

2034


What is the use of hashcode in java ?

1091


What are the different types of features of the java collections framework? : java collections

1097


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

2334


What do you understand by synchronization? Why is it important?

1046


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

2312


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

922