what we can't do in jdbc but can do hibernate?

Answer Posted / veerendra kumar

JDBC is one the technoloogy of JSE module in JAVA,but
HIBERNATE is one of the ORM tool to connect to database,its
internally uses JDBC technology providing some extra
functionalities.
1.------using JDBC to connect any database having
drawbacks,if we want to connect to database
Connection,Statement,ResultSet objects must otherwise we
cant connect here manually programmer created reference objects
-------using hibernate no need to create
Connection,Statement,ResultSet objects hibernate will
create, as aprogrammer just using that objects to connect
database,just configuration file need
2.---------using JDBC we unable to store objets directly in
databases, we need serialization for convertiong text to
object viceversa
------------using Hibernate no need directly we cand store
objects in database
3.-------as a programmer need to close con,st,rs objects in JDBC
---------no need, here Hibernate will take care for closing
con,st,rs objects
4.Comare to Hibernate JDBC is fast because its simple java
program not like big program(cfg,hbm files)

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are RemoteObjects?

2262


What is a session? Can you share a session object between different theads?

556


What is the infobus?

614


Describe activation process?

2068


Explain ioc concept?

628






What state does a thread enter when it terminates its processing?

608


Why is string immutable in java?

581


Explain the difference between object state and behavior?

569


Define the remote object implementation?

2001


Write a program to show synchronization?

694


What are the types of scaling?

558


What is the difference between a static and a non-static inner class?

598


Why use a datasource when you can directly specify a connection details?

534


What is the difference between long.class and long.type?

569


When a thread blocks on i/o?

571