Difference between JDBC and Hibernate?
Give one sample based on the variance?

Answer Posted / mkj

1. hibernate is ORM wich maps POJO using xml
file to access and create data form hatro database.
but in jdbc developers has to write code to map
object model data to rdbms and it access.

2. jdbc using SQL to access database developer has to
effective way to access the database.but hibernate
provides HQL wich powerful and includes all feature
of SQL and supports ploymorphic query.
3. Hibernate data transaction is fast due to work is
perform due container mean its xml file mostly but
JDBC has slow transaction.

Is This Answer Correct ?    45 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is executeupdate in java?

480


How do we load the drivers?

553


Is jdbc object oriented?

506


What are the functions of the jdbc connection interface?

508


Why do you use a data source object for a connection?

548






What is the significance of DataBaseMetaData.tableIndexStatistics? How to obtain and use it?

516


What is jdbc and its types?

500


Name different methods for getting streams.

548


How can we execute stored procedures using callablestatement?

475


What is odbc and jdbc drivers?

472


What are JDBC Best Practices?

555


How to get the Database server details in java program?

578


What are the 4 types of jdbc drivers?

515


How to rollback a JDBC transaction?

572


How we can you use preparedstatement.

557