Difference between JDBC and HIBERNATE?


JDBC
HIBERNATE
JDBC is a persistence technology
 Hibernate is a persistence Framework.
In JDBC developer is responsible to taking and closing the connection and also write the SQL statement.
In Hibernate HRS(Hibernate Runtime System) is responsible for taking the connections,creating the statement and releasing the connections.

JDBC does not have any ORM tool.
Hibernate have ORM (Object relational Mapping) tools which simplifies all the works(like caching mechanism,   supports Object Oriented Query Language etc.  ). that why Hibernate is the King of among all  persistence Framework.
we can set more than one Isolation Level in JDBC
In hibernate only one isolation level.


JDBC doesn't support distributed transaction
Hibernate support distributed transaction with CME(Container Mananged Environment) i.e with Spring Container and EJB container.
JDBC does not support any type of mapping
Hibernate Support various mapping styles(like simple mapping,collection mapping,inheritance mapping,association mapping and other mappings), optimization facility (like dirty checking,lazy associating fetching etc.),locking mechanism(optimestic and pesimistic lock) and also provide facility to express joins.

7 comments :

  1. The difference between jdbc and the hibernate are explained well my sincere thanks for sharing this post Please Continue to share this post
    Java Training in Chennai

    ReplyDelete
    Replies
    1. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Training in Chennai. or learn thru ASP.NET Essential Training Online . Nowadays Dot Net has tons of job opportunities on various vertical industry.

      Delete
  2. nice blog has been shared by you. before i read this blog i didn't have any knowledge about this but now i got some knowledge. so keep on sharing such kind of an interesting blog.
    java training in chennai

    ReplyDelete
  3. Hi, I am a big follower of your blog. Really very informative post you shared here. Keep sharing this type of informative blog. Waiting for your next update. If anyone wants to become a Java professional learn Java Training in Bangalore. Nowadays Java has tons of job opportunities for all professionals.

    ReplyDelete
  4. Your information about Java is useful for me to know more technical information. If it in terms of Job opportunities, again Java outscore everyone


    Core Java Online Training

    ReplyDelete
  5. You have post an very informative blog. Its really useful to me. thanks for share your blog for our vision. Web Designing Training in Chennai | Software Testing Training in Chennai

    ReplyDelete