Hibernate
Hibernate – It is written in java, an open source project, provides ORM (Object Relational Mapping) solution, technology for persisting data in any kind of application. Powerful object-oriented persistence, hibernate query language, the object oriented concept is similar to java for association, inheritance, polymorphism, composition and collection. It has automatic primary key generation, perists the java objects into database table format using the metadata that defines the object & database mapping. ORM tools address the CRUD operations on the objects of persistent classes. Web applications due to database traffic will have performance issues. Caching is the best technique to solve the heavy traffic performance problem.
One can achieve lazy loading in hibernate – loads parent objects first and later the child objects, an ORM technique.
Advantages:
- High performance
- Object Relational Mapping ORM solution is better
- Object-Oriented Query language
- One can avoid rewriting queries
- Easy Maintenance and ease to developer to concentrate on business logic rather than maintenance functionality.
Disadvantages:
- Lacks performance related to connection management and transactonal management
Hibernate xml mapping document defines the properties, mapping details
Hibernate XML Mapping Document Example:
Hibernate Architecture:
The below diagram shows Hibernate using the database and configuration data to provide persistence services /objects to the application.
There are couple of hibernate plugins (open source available) for Eclipse, Visual Studio etc.




