Why we are using Hibernate?

Why we are using Hibernate instead of JDBC where JDBC is less time taking than Hibernate?

Showing Answers 1 - 15 of 15 Answers

GAYATRI

  • Mar 13th, 2015
 

We don't need to know about sql queries no need to write all the cod for connecting database.

  Was this answer useful?  Yes

Jagadeesh

  • Mar 21st, 2015
 

No need of creating the tables manually, by using the annotations tables will get created automatically. Objects mapping can be done with ease.

  Was this answer useful?  Yes

Kaushal

  • Apr 8th, 2015
 

Hibernate is a syntactic sugar coating over JDBC that helps you focus only on your logic to tackle the problem while taking care of rest of the things like registering drivers, exception handling and all the other stuff. Also it shields your code from being dependent on the type of Database.

  Was this answer useful?  Yes

sherry

  • Jul 14th, 2015
 

Industry research results: Hibernate adds < 10% performance overhead compared to pure JDBC calls. Very tough to achieve once the business to DAO mappings, custom caching etc. is self-written for the project. Further, In many projects, Over a long term, most of the boilerplate code standardized by hibernate will be used to decorate the JDBC DAO layers to achieve the required functionality.

  Was this answer useful?  Yes

hari krishna

  • Aug 9th, 2017
 

We do not want to write the bowler plate logic when we are using hibernate, hibernate supports lazy loading where as JDBC does not support global transactions where as hibernate supports global transactions

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions