|Home |Login |Registration |Struts Step by Step Tutorial |Hibernate Step by Step Tutorial |Spring Step by Step Tutorial |JSP Step by Step Tutorial |JDBC Step by Step Tutorial |Web Services Step by Step Tutorial |EJB fundamentals | ORACLE Step by Step Tutorial | SCJP 5.0 and SCJP 6.0 Study Guide | SCWCD 5.0 Study Guide | SCJP Tips
Java mock test | SCJP mock test | SCJP DUMP | SCBCD mock test |Java online test exam | JSP online test | ORACLE online test | Hibernate online test | Servlet online test | Struts online test | EJB online test | C online test | C++ online test | Aptitude online test

Java interview questions | JSP interview questions | ORACLE interview questions | Hibernate interview questions | Servlet interview questions | Struts interview questions | JDBC interview questions | C/C++ interview questions | Spring interview questions | JMS interview questions | Informatica interview questions | EJB interview questions | OOPS and Design Pattern interview questions
1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc) JobsJobs and Walkins

 

Recent Questions

!!! Hibernate Frequently Asked Questions !!!

Q.what is the advantage of Hibernate over jdbc?

SCJP 1.5/1.6 Exam Kit

!!!Answer!!!- From Technical Expert

There are so many
1)    Hibernate is data base independent, your code will work for all ORACLE,MySQL ,SQLServer etc.
In case of JDBC query must be data base specific.
2)    As Hibernate is set of Objects , you don?t need to learn SQL language.
You can treat TABLE as a Object . Only Java knowledge is need.
In case of JDBC you need to learn SQL.
3)    Don?t need Query tuning in case of Hibernate. If you use Criteria Quires in Hibernate then hibernate automatically tuned your query and return best result with performance.
In case of JDBC you need to tune your queries.
4)     You will get benefit of Cache. Hibernate support two level of cache. First level and 2nd level. So you can store your data into Cache for better performance.
In case of JDBC you need to implement your java cache .

5)    Hibernate supports Query cache and It will provide the statistics about your query and database status.
JDBC Not provides any statistics.
6)    Development fast in case of Hibernate because you don?t need to write queries
7)    No need to create any connection pool in case of Hibernate. You can use c3p0.
In case of JDBC you need to write your own connection pool
8)    In the xml file you can see all the relations between tables in case of Hibernate. Easy readability.
9)    You can load your objects on start up using lazy=false in case of Hibernate.
JDBC Don?t have such support.

10 ) Hibernate Supports automatic versioning of rows but JDBC Not.

Answered By : null Replied Date : Feb 5 2012
Answer :


Answered By : null Replied Date : Jan 15 2012
Answer :


Answered By : null Replied Date : Dec 12 2011
Answer :


Answered By : null Replied Date : Nov 18 2011
Answer :


Answered By : null Replied Date : Nov 17 2011
Answer :


Answered By : null Replied Date : Nov 5 2011
Answer :


Answered By : null Replied Date : Oct 1 2011
Answer :


Answered By : null Replied Date : Oct 1 2011
Answer :


Answered By : null Replied Date : Sep 28 2011
Answer :


Answered By : null Replied Date : Sep 24 2011
Answer :


Answered By : null Replied Date : Sep 15 2011
Answer :


Answered By : null Replied Date : Aug 10 2011
Answer :


Answered By : null Replied Date : Aug 6 2011
Answer :


Answered By : null Replied Date : Jul 9 2011
Answer :


Answered By : null Replied Date : Jun 18 2011
Answer :


Answered By : null Replied Date : May 30 2011
Answer :


Answered By : null Replied Date : May 29 2011
Answer :


Answered By : null Replied Date : May 7 2011
Answer :


Answered By : null Replied Date : Apr 27 2011
Answer :


Answered By : null Replied Date : Apr 25 2011
Answer :


Answered By : null Replied Date : Mar 31 2011
Answer :


Answered By : null Replied Date : Mar 3 2011
Answer :


Answered By : null Replied Date : Feb 19 2011
Answer :


Answered By : null Replied Date : Feb 18 2011
Answer :


Answered By : null Replied Date : Feb 8 2011
Answer :


Answered By : null Replied Date : Feb 8 2011
Answer :


Answered By : null Replied Date : Feb 8 2011
Answer :


Answered By : null Replied Date : Feb 6 2011
Answer :


Answered By : null Replied Date : Feb 6 2011
Answer :


Answered By : null Replied Date : Feb 3 2011
Answer :


Answered By : null Replied Date : Jan 15 2011
Answer :


Answered By : null Replied Date : Jan 13 2011
Answer :


Answered By : null Replied Date : Jan 12 2011
Answer :


Answered By : null Replied Date : Dec 9 2010
Answer :


Answered By : null Replied Date : Dec 7 2010
Answer :


Answered By : null Replied Date : Nov 20 2010
Answer :


Answered By : null Replied Date : Nov 19 2010
Answer :


Answered By : null Replied Date : Nov 16 2010
Answer :


Answered By : null Replied Date : Nov 12 2010
Answer :


Answered By : null Replied Date : Nov 7 2010
Answer :


Answered By : null Replied Date : Nov 7 2010
Answer :


Answered By : null Replied Date : Nov 7 2010
Answer :


Answered By : null Replied Date : Nov 7 2010
Answer :


Answered By : null Replied Date : Oct 28 2010
Answer :


Answered By : null Replied Date : Sep 18 2010
Answer :


Answered By : null Replied Date : Aug 29 2010
Answer :


Answered By : null Replied Date : Aug 28 2010
Answer :


Answered By : null Replied Date : Aug 26 2010
Answer :


Answered By : null Replied Date : May 8 2012
Answer :


Answered By : null Replied Date : Jun 18 2012
Answer :


Answered By : null Replied Date : Jul 31 2012
Answer :


Answered By : null Replied Date : Aug 14 2012
Answer :


Answered By : null Replied Date : Oct 10 2012
Answer :


Answered By : null Replied Date : Nov 2 2012
Answer :


Answered By : null Replied Date : Nov 29 2012
Answer :


Answered By : null Replied Date : Dec 7 2012
Answer :


Answered By : null Replied Date : Dec 10 2012
Answer :


Answered By : null Replied Date : Dec 30 2012
Answer :


Answered By : null Replied Date : Feb 17 2013
Answer :


Answered By : null Replied Date : Feb 26 2013
Answer :


Answered By : null Replied Date : Mar 5 2013
Answer :


 

You can also contribute to this answer:

Your Name:
Answer:

 
Ask Question and get answer from Expert.
View Answers List from Expert.

The information you are posting should be related to java and ORACLE technology. Not political.