Showing posts with label Advantages of Hibernate. Show all posts
Showing posts with label Advantages of Hibernate. Show all posts

Advantages of Hibernate

Advantages of Hibernate
  • Hibernate is an ORM (object relational mapping) tool which is better than JDBC.

  • Hibernate framework is opensource under the LGPL license and lightweight because it uses POJO classes for data transfer between application and database.

  • Hibernate is Easy to maintain and it will increases productivity.

  • Hibernate has versioning and time stamp feature with this we can know how many number of times data is modified.

  • Hibernate has its own query language, i.e hibernate query language which is database independent so that it supports various databases.

  • Hibernate supports collections(List,Set,Map).

  • Hibernate supports inheritance, i.e if we save the derived class object, then its base class object will also be stored into the database which indicates inheritance.

  • Hibernate supports polymorphism

  • Hibernate supports associations by managing the data stored across multiple tables by applying relations.

  • Hibernate has an exception translator , which converts checked exceptions of JDBC in to unchecked exceptions of hibernate. So all exceptions in hibernate are unchecked exceptions , so no need to handle exceptions explicitly by writing try, catch blocks or no need to use throws keyword next to method.

  • Hibernate supports relationships like One-To-Many,One-To-One, Many-To-Many-to-Many, Many-To-One.

  • Hibernate supports Lazy loading , annotations along with XML.
  • Hibernate supports caching mechanism so that the number of interactions between an application and the database will be reduced, by using this caching technique an application performance will be increased automatically.

  • Hibernate has capability to generate primary keys automatically while we are storing the records into database.

  • Hibernate provided Dialect classes, so we no need to write sql queries in hibernate, instead we use the methods provided by that API.

  • Pagination in hibernate is quite simple.



Featured Post

H1B Visa Stamping at US Consulate

  H1B Visa Stamping at US Consulate If you are outside of the US, you need to apply for US Visa at a US Consulate or a US Embassy and get H1...