Saturday 20 July 2013

Advantages of HIBERNATE

    Advantages of HIBERNATE

  • Hibernate supports inheritance, relationships like one-to-many, many-to-one, one-to-one,..etc.
  • it is a open source light-weight tool(Non invasive frame work) bcoz it uses POJO (Plain Old Java Object) classes which don't implement predefined Interfaces or extendss predefined classes.
  • it supports collections like set, list, map.
  • Hibernate have only unchecked exceptions, so no need to write try, catch or no need to write throws. Actually in hibernate we have the tranlator which converts checked exceptions into Unchecked exceptions
  • It has capability to generate primary keys automatically while we are storing the records into database.
  • Hibernate has its own Query language HQL. (i.e: Hibernate Query Language) which is database  independant.
  • In Hibernate tables are created automatically at the time of insertion of first no of round trips between java applicaton and the database so performance will be improved.
  • other important advantage is hibernate support pagination mechanism by which we can display 1000's of records page by page instead of displaying at once.
  • Hibernate also supports annotations like JPA but it is not preferabble  bcoz annotations are not effective as XML.

No comments:

Post a Comment