Why Hibernate and not JDBC ?

  • JDBC maps Java classes to database tables (and from Java data types to SQL data types)
  • Hibernate automatically generates the SQL queries.
  • Hibernate provides data query and retrieval facilities and can significantly reduce development time otherwise spent with manual data handling in SQL and JDBC.
  • Makes an application portable to all SQL databases.
  • Hibernate APIs are very simple to learn and use.
  • Provides quite powerful object query language known as Hibernate Query Language (HQL)