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

Name the eight primitive java types.

1062


Explain what is synchronization?

1045


Explain the advantages and disadvantages of detached objects.

967


What is permgen or permanent generation?

968


What is chat area? Explain.

962


What is a class loader? What are the different class loaders used by jvm?

1054


What are the pros and cons of detached objects?

932


Why use a datasource when you can directly specify a connection details? (in a J2EE application)

4173


What is the form of storage space in java?

2203


If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?

997


What modifiers may be used with an interface declaration?

1074


difference between  ejb,struts,hibernate,spring and jsp

2811


Difference between loadclass and class.forname?

993


What is ripple effect?

1027


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

1091